Zend Framework 视图中使用视图 博客分类: PHP zendphp
程序员文章站
2024-03-20 08:10:46
...
- <!DOCTYPEhtml
- PUBLIC"-//W3C//DTDXHTML1.0Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html>
- <head>
- <metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/>
- <?php
- echo$this->headTitle('视图中使用视图');
- $this->headLink()->appendStylesheet("/styles/main.css");
- //addmorelinks...
- echo$this->headLink();
- ?>
- </head>
- <body>
- <h1>这是一个视图中使用视图的示例</h1>
- <divid='header'style="background-color:yellow;clear:both;">
- <?phpecho$this->partial('header.phtml');?>
- </div>
- <divid='lfetside'style="background-color:red;float:left;width:200px">
- LeftSide
- </div>
- <divid='content'style="background-color:gray;float:left;width:600px;margin-left:6px">
- <?phpecho$this->layout()->content;?>
- </div>
- <divid='footer'style="background-color:yellow;clear:both;">
- <?phpecho$this->partial('footer.phtml');?>
- </div>
- </body>
- </html>
版权声明:本文为博主原创文章,未经博主允许不得转载。