Example #1
0
 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"));
 }
Example #2
0
 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();
 }
Example #3
0
 public function __construct($tpl = '')
 {
     parent::__construct($tpl);
     require_once "crodas/Haanga/lib/Haanga.php";
 }
Example #4
0
 public function __construct($tpl = '')
 {
     parent::__construct($tpl);
 }