Home  >  Article  >  Backend Development  >  Using views in Zend Framework views

Using views in Zend Framework views

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

  1. PUBLIC"-//W3C//DTDXHTML1.0Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/ xhtml1-strict.dtd">
  3. "text/html;charset=utf-8"
  4. />echo
  5. $this
  6. ->headTitle(
  7. 'Use view in view'
  8. ; echo$this->headLink();?>
  9. < ;h1>This is a Examples of using views in views
  10. 'header'"background-color:yellow;clear:both;"
  11. >
  12. < ?php
  13. echo$this
  14. ->partial('header.phtml'
  15. );?>
' lfetside'"background-color: red; float: left; width: 200px"
  • > =' 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'
  • );?>
  • Copyright statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission. The above introduces the use of views in Zend Framework views, including aspects of content. I hope it will be helpful to friends who are interested in PHP tutorials.
  • Statement:
    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
    Previous article:nginx image caching and anti-leechingNext article:nginx image caching and anti-leeching

    Related articles

    See more