I really thank you for these videos, they are so helpful.
@codingjack3 жыл бұрын
Awesome... Very helpful...
@drjonbear751710 ай бұрын
These are great thanks! Is the finished project in a GH repo?
@nanohetube Жыл бұрын
l would like to appreciate for the great videos, thank you!
@szaboistvan3694 жыл бұрын
Hey Alex, What's the real benefit of using layouts over just views? Because for the benefit you mentioned, I could just create a render method in the BaseController, and could take care of the 3 echos in that method, which is actually superior, because then I can also do additional data passing or whatever at that level.
@fernandowabab66204 жыл бұрын
Nice tutorial, thanks you Alex
@AlexLancer4 жыл бұрын
You're welcome, Fernando!
@sekfook974 жыл бұрын
Hi Alex, your tutorial is super useful. Would be really appreciated if you can upload the source code of this series to youtube. Thank you so much
@robrussell745510 ай бұрын
late to the party here...these are quite good, thanks for the vids. I assume that layouts can include view cells (e.g. referencing discrete header, footer files!)
@muhammedsafeero3 жыл бұрын
Thank you so much ...
@jigglypotatoes4 жыл бұрын
Very helpful thanks.
@AlexLancer4 жыл бұрын
You're welcome!
@pkpawan4604 жыл бұрын
nice, Thanks
@outstyler2 жыл бұрын
Very nice and useful ! What if we have queries from database in the footer ? how should be code this ? (eg: a widget in the footer that list the blog categories) Thank you Alex
@AlexLancer2 жыл бұрын
Hey Matt, the query should be inside some method within some model. Then use view_cell to load that model and call the method
@musaddiqktk4 жыл бұрын
Hi Alex, thank you explaining in such detail. I've one question, how we change title of main layout page. So that every page should have separate title.
@LlegoManuel4 жыл бұрын
Im not really sure, but looks like the data array has the variables for the view and the layout. Hope it helps.
@IngPedroAraujo4 жыл бұрын
Hey! Buddy I do it in this way: 1.- I create a render section called 'metaPageTitle' for example: | My Blog 2.- To show a different title on your pages write: Your title I hope this can help you.
@JeewakaKarunaratne4 жыл бұрын
Dear Alex, thank you for educating about layout. i have two questions, 1) you showed load one page using layout with 'content' tag, so each page 'content' tag to use to load layout? 2) for navigation how to load layout and content page?
@AlexLancer4 жыл бұрын
1. Yes 2. Put your navigation in a separate view file "nav.php". Then inside of your layout file use Hope that helps!
@maulanahahaha4 жыл бұрын
wooow. thankyou so much...
@AlexLancer4 жыл бұрын
Most welcome 😊
@konam4341 Жыл бұрын
Hi, I get this error Use of $this in global code might be unatendedPHP(PHP0437). It appears if I use the extend and render method. Can you tell me what cause this error and how to fix this?
@filippolevizzani45843 жыл бұрын
Hi, is it possible to pass a "parent" layout to a view programmatically?
@JeewakaKarunaratne4 жыл бұрын
Hi Alex, can you kindly answer my previous question? how to load meta description, title in layout view.
@IngPedroAraujo4 жыл бұрын
Hey! Buddy Take the idea from my answer that I wrote to Mussiddiq Rahman. I meant you have to create a render section for every dinamics parte in your Layouts.
@darleneabigail64434 жыл бұрын
Hi Alex , please make a video about how to add blade template engine to codeigniter 4
@ikbarrahma65902 жыл бұрын
Call to undefined method CodeIgniter\View\View::extends() I can't extend to the template