使用Zend_Layout的我beginner.I在Zend的layout.phtml以下的div结构我如何自举
<div id='outer'>//start outer
<div id='header'>//start header......</div>// end header
<div id='content'>//start content......</div>// end content
<div id='footer'>//start footer......</div>// end footer
</div>// end outer
在这里我要的页面类似header.phtml的头部分和footer.phtml分离为页脚部分。我怎样才能在bootsrap文件中使用Zend_Layout来上述结构
我在哪里添加上面的代码在引导文件?我们在_initViewHelper()中添加了那个吗?如果是的话,我的layout.phtml路径是“应用程序/布局/脚本”我需要在PATH到你的布局目录给路径吗? – mymotherland
将其添加到runApp()方法。按照我在回复中提到的方式指定布局路径。 –
我现在得到了这个观点,我使用了“zf enable layout”,它在application.ini中添加“resources.layout.layoutPath = APPLICATION_PATH”/ layouts/scripts /“,所以我不想再指出关于布局路径的bootsrap文件。 ..right? – mymotherland