Using views in the Zend Framework view

Source: Internet
Author: User
  1. Public "-//w3c//dtdxhtml1.0strict//en"
  2. "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
  3. <>< span=""> "Content-type" c/span>"text/html;charset=utf-8"/> <>
  4. Echo $this ->headtitle (use view in view);
  5. $this ->headlink ()->appendstylesheet ("/styles/main.css");
  6. Addmorelinks ...
  7. Echo $this ->headlink ();
  8. ?>
  9. This is an example of using views in a view

  10. ' Header '"Background-color:yellow;clear:both;" >
  11. Echo $this ->partial (' header.phtml ');? >
  12. ' Lfetside '"background-color:red;float:left;width:200px">
  13. Leftside
  14. ' Content '"background-color:gray;float:left;width:600px;margin-left:6px">
  15. Echo $this ->layout ()->content;? >
  16. ' Footer '"Background-color:yellow;clear:both;" >
  17. Echo $this ->partial (' footer.phtml ');? >

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

The above describes the use of views in the Zend Framework view, including aspects of the content, you want to be interested in PHP tutorial friends helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.