Heim  >  Artikel  >  Backend-Entwicklung  >  Zend Framework 视图中使用视图

Zend Framework 视图中使用视图

WBOY
WBOYOriginal
2016-07-29 09:14:001357Durchsuche

  1. /span>
  2. PUBLIC"-//W3C//DTDXHTML1.0Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. "Content-Type"c/span>"text/html;charset=utf-8"/>
  5. echo$this->headTitle('视图中使用视图');
  6. $this->headLink()->appendStylesheet("/styles/main.css");
  7. //addmorelinks...
  8. echo$this->headLink();
  9. ?>
  10. 这是一个视图中使用视图的示例

  11. 'header'"background-color:yellow;clear:both;">
  12. echo$this->partial('header.phtml');?>
  13. 'lfetside'"background-color:red;float:left;width:200px">
  14. LeftSide
  15. 'content'"background-color:gray;float:left;width:600px;margin-left:6px">
  16. echo$this->layout()->content;?>
  17. 'footer'"background-color:yellow;clear:both;">
  18. echo$this->partial('footer.phtml');?>

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

以上就介绍了Zend Framework 视图中使用视图,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn