public function __construct($tpl = '') { if (!class_exists('\\Smarty')) { throw new \Exception("Missing Vendor: Smarty Template Engine library is not installed on project!\n" . "You can solve this adding the missing vendor to composer.json and executing 'composer.phar update'"); } parent::__construct($tpl); $this->smarty = new \Smarty(); $this->smarty->registerPlugin("function", "form_widget", array($this, "formWidget")); }
public function __construct($tpl = '', Bundle $assetsHandler = null) { parent::__construct($tpl, $assetsHandler); if (!class_exists('\\Twig_Autoloader')) { throw new \Exception("Missing Vendor: Twig Template Engine library is not installed on project!\n" . "You can solve this adding the missing vendor to composer.json and executing 'composer.phar update'"); } require_once 'twig/twig/lib/Twig/Autoloader.php'; \Twig_Autoloader::register(); }
public function __construct($tpl = '') { parent::__construct($tpl); require_once "crodas/Haanga/lib/Haanga.php"; }
public function __construct($tpl = '') { parent::__construct($tpl); }