$this->tpl = $this->view->getEngine();
$this->tpl->compile('sectionBody.html');
$this->view->content = $this->tpl->bufferedOutputObject($this->view);
$this->render("index", null, true);
It basically gets the view engine which is the flexy template engine,
compiles a section body as a string back to $this->view->content and it
will display in the variable within the index view script. If there is a
better way to do this let me know.
Hi there im having some problems which ive managed to hack up. Id like
to be able to render a different template into a template variable
called {content} so then all i need is one main index template and each
controller / action can set a different content placeholder. The only
way i can do it for the moment is rendering a template to a variable
$this->view->content, would this be ok to do ?
- [fw-general] Placeholders again Dan Rossi
- Re: [fw-general] Placeholders again Matthew Weier O'Phinney
- Re: [fw-general] Placeholders again Dan Rossi
- Re: [fw-general] Placeholders again Matthew Weier O'Phinney
- Re: [fw-general] Placeholders again Dan Rossi
- Re: [fw-general] Placeholders again Matthew Weier O'Phinney
