Hello,
I am getting this error on my server out of the blue (on my local computer it is working fine under Apache2 and nginx). I am using NGINX on the server.
Do anyone knows what is needed to change to make it work?
Issue is here:
In the template I am using "widget" for menu
{{ widgets.renderTopMenu() }}
This is handled by:
class Widgets extends \Phalcon\Mvc\User\Component
{
protected function tmplRender($tmpl)
{
$this->view->start();
//render $tmpl.volt stored in /views/widgets/$tmpl.vol
$this->view->render('widgets',$tmpl); // <-- here the cycle happens
$this->view->finish();
return $this->view->getContent();
}
public function renderTopMenu()
{
$menu = array ....;
$this->view->setVar('menu', $menu);
return $this->tmplRender('top-menu');
}
}
Thank you for your help!