Welcome Guest, Not a member yet? Register   Sign In
Clarification how to use view_cell, layouts or views
#7

(This post was last modified: 04-16-2023, 01:46 AM by Corsari.)

(04-15-2020, 01:32 PM)kilishan Wrote: All three ways work. .... t. Especially since you can easily cache those views so you don't have to hit the database at all.

The only real benefit to using $this->renderSection() and the others is to allow for templates that can be shared among all of your page views for different page layouts (like homepage, two-column, three-column, admin, etc).

Hello
cache sounds great

can you kindly hint how to enable the cacheing of such a view cell?
Or it will got cached automatically?

Also: Navigation bar has much sense in a layout template or as cell to be called from the main template file? For readability could be, but is there something to consider about such approach? Pro / Cons

Thank you
Reply


Messages In This Thread
RE: Clarification how to use view_cell, layouts or views - by Corsari - 04-16-2023, 01:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB