Hi,
F3 newbie here, trying to find out the best way to render partials. I'm not using F3's templating engine but instead using PHP templates with F3's View::instance()->render() method.
I have a controller with the following method:
public function dashboard($f3)
{
$body = View::instance()->render('app/views/dashboard.php');
$f3->set('body', $body);
$this->f3->set('ESCAPE', false);
echo View::instance()->render('app/views/core_master.php');
$this->f3->set('ESCAPE', true);
}
The core_master.php template has a single placeholder for $body, which I want to fill with the partial.
If I don't use the f3->set('ESCAPE', true) directive then my partial has html entities encoded and so doesn't render properly.
Is there another approach that doesn't require me to set ESCAPE to false?
Thanks,
Martin.