欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Zend Framework 视图中使用视图 博客分类: PHP zendphp 

程序员文章站 2024-03-20 08:10:46
...
  1. <!DOCTYPEhtml
  2. PUBLIC"-//W3C//DTDXHTML1.0Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <html>
  5. <head>
  6. <metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/>
  7. <?php
  8. echo$this->headTitle('视图中使用视图');
  9. $this->headLink()->appendStylesheet("/styles/main.css");
  10. //addmorelinks...
  11. echo$this->headLink();
  12. ?>
  13. </head>
  14. <body>
  15. <h1>这是一个视图中使用视图的示例</h1>
  16. <divid='header'style="background-color:yellow;clear:both;">
  17. <?phpecho$this->partial('header.phtml');?>
  18. </div>
  19. <divid='lfetside'style="background-color:red;float:left;width:200px">
  20. LeftSide
  21. </div>
  22. <divid='content'style="background-color:gray;float:left;width:600px;margin-left:6px">
  23. <?phpecho$this->layout()->content;?>
  24. </div>
  25. <divid='footer'style="background-color:yellow;clear:both;">
  26. <?phpecho$this->partial('footer.phtml');?>
  27. </div>
  28. </body>
  29. </html>

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关标签: zend php