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

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

WBOY
Release: 2016-06-13 13:51:34
Original
835 people have browsed it

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

求教.

先谢谢大家了。

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template