开发者

dynamic footer kohana v3

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜