How to implement a sidebar in Zend Framework

前端 未结 3 1367
灰色年华
灰色年华 2021-02-03 15:07

How do I implement a sidebar in Zend Framework? I know that I can use a placeholder or something similar in Zend_layout, but how do I automatically generate the code for the sid

3条回答
  •  深忆病人
    2021-02-03 15:49

    You could just have a action and view in one of your controllers which renders the sidebar.

    from the layout for the blog module you just call:

    action('action','controller','module',array('optionalparams'=>1); ?>
    

    on the position where you want to have it. So one call to one action.

提交回复
热议问题