I have a Zend Framework project which, due to the experience of previous programmers, used the Smarty view viewer (configured in the bootloader).
Now I would like to - over time, switch to either the default ZF PHTML rendering renderer, or even use PHPTAL .
Can ZF (version 1.10+) support multiple render rendering while I do the migration (.tpl to .phtml)? I can not find documentation on this.
hi I use the default view of the zend framework, but I can use the smarty view in it with this code
echo $this->render("sample.tpl");
, ,
echo $this->render("sample.phtml");
$this->view->render("sample.phtml");
.
$this->layout()->setLayout('layout1'); // layout.phtml
, .
$this->layout()->disableLayout();
<?php echo $this->render('header.phtml') ?> <?php echo $this->render('sidebar.phtml') ?> <?php echo $this->render('box.phtml') ?> <?php echo $this->render('slider.phtml') ?>