Zend Layout


PHP
Create a PHP file
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
<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]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki