http://blog.csdn.net/chris_mao/article/details/3035687
?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php echo $this->headTitle('视图中使用视图'); $this->headLink()->appendStylesheet("/styles/main.css"); // add more links ... echo $this->headLink(); ?> </head> <body> <h1>这是一个视图中使用视图的示例</h1> <div id='header' style="background-color: yellow;clear: both;"> <?php echo $this->partial('header.phtml'); ?> </div> <div id='lfetside' style="background-color: red;float: left;width: 200px"> Left Side </div> <div id='content' style="background-color: gray;float:left;width:600px; margin-left: 6px"> <?php echo $this->layout()->content; ?> </div> <div id='footer' style="background-color: yellow;clear: both;"> <?php echo $this->partial('footer.phtml'); ?> </div> </body> </html>
?