- /span>
-
public"-//w3c//dtdxhtml1.0strict//en"
-
"http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">
- "content-type"c/span>"text/html;charset=utf-8"/>
-
echo$this->headtitle('视图中使用视图');
-
$this->headlink()->appendstylesheet("/styles/main.css");
- //addmorelinks...
-
-
echo$this->headlink();
- ?>
-
这是一个视图中使用视图的示例
- 'header'"background-color:yellow;clear:both;">
- echo$this->partial('header.phtml');?>
- 'lfetside'"background-color:red;float:left;width:200px">
- leftside
- 'content'"background-color:gray;float:left;width:600px;margin-left:6px">
- echo$this->layout()->content;?>
-
- 'footer'"background-color:yellow;clear:both;">
- echo$this->partial('footer.phtml');?>
-
版权声明:本文为博主原创文章,未经博主允许不得转载。
以上就介绍了Zend Framework 视图中使用视图,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。