Formatting code for ZendLayout


show source only

>>http://framework.zend.com/manual/en/zend.layout.html
>>===Zend Layout===

==PHP==
Create a PHP file
%%(php)
require_once 'Zend/Loader/Autoloader.php';
Zend_Loader_Autoloader::getInstance();

$l = new Zend_Layout;
$l->setLayout('lay');
$l->nav='navbar navbar';
$l->content='content content content';
echo $l->render();
%%

==PHTML==
You then just need to create a PHTML layout file in ./views/scripts/lay.phtml
%%(php)
<html>
<head>
<?= $this->headTitle() ?>
<body>
<?= $this->layout()->nav ?>
some text
<?= $this->layout()->content ?>
some more text
</body>
</html>
%%

----
REFERRERS
{{backlinks}}
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki