CodeIgniter 4 from Scratch - #8 - Views | View Layouts | Part 3/3

  Рет қаралды 21,328

Alex Lancer

Alex Lancer

Күн бұрын

Пікірлер
@mariepgozzer
@mariepgozzer 3 жыл бұрын
I really thank you for these videos, they are so helpful.
@codingjack
@codingjack 3 жыл бұрын
Awesome... Very helpful...
@drjonbear7517
@drjonbear7517 10 ай бұрын
These are great thanks! Is the finished project in a GH repo?
@nanohetube
@nanohetube Жыл бұрын
l would like to appreciate for the great videos, thank you!
@szaboistvan369
@szaboistvan369 4 жыл бұрын
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.
@fernandowabab6620
@fernandowabab6620 4 жыл бұрын
Nice tutorial, thanks you Alex
@AlexLancer
@AlexLancer 4 жыл бұрын
You're welcome, Fernando!
@sekfook97
@sekfook97 4 жыл бұрын
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
@robrussell7455
@robrussell7455 10 ай бұрын
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!)
@muhammedsafeero
@muhammedsafeero 3 жыл бұрын
Thank you so much ...
@jigglypotatoes
@jigglypotatoes 4 жыл бұрын
Very helpful thanks.
@AlexLancer
@AlexLancer 4 жыл бұрын
You're welcome!
@pkpawan460
@pkpawan460 4 жыл бұрын
nice, Thanks
@outstyler
@outstyler 2 жыл бұрын
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
@AlexLancer
@AlexLancer 2 жыл бұрын
Hey Matt, the query should be inside some method within some model. Then use view_cell to load that model and call the method
@musaddiqktk
@musaddiqktk 4 жыл бұрын
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.
@LlegoManuel
@LlegoManuel 4 жыл бұрын
Im not really sure, but looks like the data array has the variables for the view and the layout. Hope it helps.
@IngPedroAraujo
@IngPedroAraujo 4 жыл бұрын
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.
@JeewakaKarunaratne
@JeewakaKarunaratne 4 жыл бұрын
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?
@AlexLancer
@AlexLancer 4 жыл бұрын
1. Yes 2. Put your navigation in a separate view file "nav.php". Then inside of your layout file use Hope that helps!
@maulanahahaha
@maulanahahaha 4 жыл бұрын
wooow. thankyou so much...
@AlexLancer
@AlexLancer 4 жыл бұрын
Most welcome 😊
@konam4341
@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?
@filippolevizzani4584
@filippolevizzani4584 3 жыл бұрын
Hi, is it possible to pass a "parent" layout to a view programmatically?
@JeewakaKarunaratne
@JeewakaKarunaratne 4 жыл бұрын
Hi Alex, can you kindly answer my previous question? how to load meta description, title in layout view.
@IngPedroAraujo
@IngPedroAraujo 4 жыл бұрын
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.
@darleneabigail6443
@darleneabigail6443 4 жыл бұрын
Hi Alex , please make a video about how to add blade template engine to codeigniter 4
@ikbarrahma6590
@ikbarrahma6590 2 жыл бұрын
Call to undefined method CodeIgniter\View\View::extends() I can't extend to the template
@Mrscandeia
@Mrscandeia 4 жыл бұрын
show. kd o github codfonte ?
@AlexLancer
@AlexLancer 4 жыл бұрын
Hey, Manoel, at this point no I did not upload.
CodeIgniter 4 from Scratch - #9 - Models
50:36
Alex Lancer
Рет қаралды 36 М.
The secret to mastering CSS layouts
17:11
Kevin Powell
Рет қаралды 295 М.
Война Семей - ВСЕ СЕРИИ, 1 сезон (серии 1-20)
7:40:31
Семейные Сериалы
Рет қаралды 1,6 МЛН
CodeIgniter 4 from Scratch - #3 - Folder Structure Overview
19:54
#16 View Layouts CodeIgniter 4
30:18
GoPHP
Рет қаралды 13 М.
PHP on the frontend! No more Javascript!
14:47
Aaron Francis
Рет қаралды 127 М.
CodeIgniter 4 from Scratch - #6 - Views | Basic Views | Part 1/3
25:50
Useful & Responsive Layouts, no Media Queries required
11:03
Kevin Powell
Рет қаралды 184 М.
CodeIgniter 4 from Scratch - #5 - Routes
21:37
Alex Lancer
Рет қаралды 40 М.
CodeIgniter 4 and PHP MVC basics: controllers, views and layouts
24:50
Dave Hollingworth
Рет қаралды 41 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 987 М.