using XHTML FRAMESET with Zend Layout on Zend_App (MVC)
| From: | Dare Williams | Date: | Wed, 04 May 2011 12:04:02 +0000 |
| Subject: | using XHTML FRAMESET with Zend Layout on Zend_App (MVC) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-312660@lists.php.net to get a copy of this message | ||
Dear Developer,
Can anybody help with tips on how to implement a XHTML1_FRAMESET type on a Zend_Layout API in a
Zend_Application(MVC).
example.in your bootstrap resources plugin
(setting.ini).resources.layout.layout = "main"resources.layout.layoutPath = "/path/to/layout"
then on main.phtml you have this code<? $this->DocType() ; ?>"http://www.w3..org/TR/xhtml1/DTD/xhtml1-frameset.dtd"><html
xmlns="http://www.w3.org/1999/xhtml"><head><?
$this->HeadMeta ; ?><? $this->HeadTitle ; ?><? $this->HeadScript; ?><?
$this->HeadLink; ?></head>
<frameset rows="80,*" cols="*" frameborder="no"
border="0" framespacing="0"> <frame src="top.phtml"
name="topFrame" scrolling="No" noresize="noresize"
id="topFrame" title="topFrame" /> <frameset cols="80,*"
frameborder="no" border="0" framespacing="0"> <frame
src="left.phtml" name="leftFrame" scrolling="No"
noresize="noresize" id="leftFrame" title="leftFrame" />
<frame src="mainDisplay.phtml" name="mainFrame" id="mainFrame"
title="mainFrame" />
</frameset></frameset><noframes><body></body></noframes></html>
While mainDisplay.phtml stands as your main script that should load the Layout Content variable i.e
<? $this->layout()->content; ?>
My main question is how do you make <? $this->layout()->content; ?> works on the
external script(src="mainDisplay.phtml") that is called on main.phtml on mainFrameset .
Thank you.