- Public "-//w3c//dtdxhtml1.0strict//en"
- "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
- <>< span=""> "Content-type" c/span>"text/html;charset=utf-8"/> <>
-
- Echo $this ->headtitle (use view in view);
- $this ->headlink ()->appendstylesheet ("/styles/main.css");
- Addmorelinks ...
- Echo $this ->headlink ();
- ?>
This is an example of using views in a view
- ' Header '"Background-color:yellow;clear:both;" >
- Echo $this ->partial (' header.phtml ');? >
- ' Lfetside '"background-color:red;float:left;width:200px">
- Leftside
- ' 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 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.