Home  >  Article  >  Backend Development  >  Zend Framework载入页头和页脚的有关问题

Zend Framework载入页头和页脚的有关问题

WBOY
WBOYOriginal
2016-06-13 09:59:20779browse

Zend Framework载入页头和页脚的问题
Zend Framework 我该如何载入页头和页脚呢?
因为页头和页脚是共用的,所以我应该放在哪里,用哪个类或函数载入,如何给页头页脚里的变量赋值..

求教.

先谢谢大家了。

------解决方案--------------------
Zend_Layout
------解决方案--------------------
把页头和页脚放views/scripts中,在layouts里用$this->render('你的页面')载入

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn