public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 try { $this->parent = $this->env->loadTemplate("@app/views/layouts/layout.twig"); } catch (Twig_Error_Loader $e) { $e->setTemplateFile($this->getTemplateName()); $e->setTemplateLine(1); throw $e; } $this->blocks = array('content' => array($this, 'block_content')); }
public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array(); }