示例#1
0
 public static function templates()
 {
     if (!TemplatesFactory::$templates) {
         TemplatesFactory::$templates = new League\Plates\Engine(APP . 'view/plates');
         TemplatesFactory::$templates->addData(['titulo' => 'FAQ']);
         TemplatesFactory::$templates->registerFunction('borrar_msg_feedback', function () {
             Session::set('feedback_negative', null);
             Session::set('feedback_positive', null);
         });
     }
     return TemplatesFactory::$templates;
 }
示例#2
0
 function __construct()
 {
     $this->view = TemplatesFactory::templates();
     Session::init();
 }