Reputation: 5641
Is it possible to call a .ctp file from a layout which is also a .ctp file?
I have a default layout with the topbar, the footer and of course the variable $content_for_layout in the middle. I would like to dispatch the topbar and the footer into two others different .ctp files and I would like to call them from my layout.
Upvotes: 0
Views: 1697
Reputation: 4448
You can use elements or, in CakePHP 2.1, you can check out blocks.
Upvotes: 2