View Component |
10-22-2022, 09:32 AM
(This post was last modified: 10-22-2022, 09:35 AM by captain-sensible. Edit Reason: forgot to add some points )
if you use the approach of "layout" in your views , then you can create for want of a better word , chunks of html which can be inserted into a single main web page
So in my case my view "layout" contains the header(with links to css , bootstrap etc ) , main middle section where different content is inserted and footer(also containing jquery ) in the middle it has Code: <?= $this->renderSection('content') ?> each different "chunk" of html will be in the form : Code: <?= $this->extend('layout') ?> |
Messages In This Thread |
View Component - by SubrataJ - 10-22-2022, 04:51 AM
RE: View Component - by captain-sensible - 10-22-2022, 09:32 AM
RE: View Component - by kenjis - 10-22-2022, 06:56 PM
RE: View Component - by SubrataJ - 10-22-2022, 08:23 PM
RE: View Component - by kilishan - 10-24-2022, 06:52 AM
RE: View Component - by SubrataJ - 10-25-2022, 06:26 AM
|