2007/5/29, Kevin McArthur <[EMAIL PROTECTED]>:
Hi Guys,
I'm trying to upgrade several sites to 1.0 but my sites tend to use a main
template (engine.tpl) plus a set of sub templates (actionName.tpl) (
menu.tpl) etc... it seems fairly evident how to sub-render, but with outer
most template always being the same file, how do you set this with the view
renderer's automatic actions to set the $view->content variable to the
actionName template automatically.
Kevin
Hi Kevin,
as far as I remember, there was a proposal of advanced templates management,
but not ready yet.
For now, You can still render Your templates manually.
Adding:
function init()
{
$this->initView();
$this->_helper->viewRenderer->setNoRender();
}
in every controller will stop default renderer. Then You can call
$view->display("templateName.tpl");
It's especially useful if You use Smarty.
--
greetings,
Sebastian Poreba