开发者

dynamic footer kohana v3

开发者 https://www.devze.com 2023-01-18 14:16 出处:网络
I\'ve been able to render the footer view (e.g: View::factory(\'pages/footer\'), but I would like this view for example to be managed by a controller class within the main controller.

I've been able to render the footer view (e.g: View::factory('pages/footer'), but I would like this view for example to be managed by a controller class within the main controller.

Imagine: main template controller (common to all pages) dynamic header controller cl开发者_如何学Goass dynamic menu controller class dynamic foooter controller class

Thanks, for your help!


// in your View
echo Request->factory('layout/footer')->execute()->response;

It will execute (by default) Controller_Layout::action_footer().

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号