Zend Layout
PHP
Create a PHP filerequire_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();
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<html>
<head>
<?= $this->headTitle() ?>
<body>
<?= $this->layout()->nav ?>
some text
<?= $this->layout()->content ?>
some more text
</body>
</html>
<head>
<?= $this->headTitle() ?>
<body>
<?= $this->layout()->nav ?>
some text
<?= $this->layout()->content ?>
some more text
</body>
</html>
REFERRERS
ZendFramework
There are no comments on this page. [Add comment]