Beispiel #1
0
 protected function process_file($file_override = false)
 {
     $file = $file_override ?: $this->file_name;
     static::cache_init($file);
     $file = static::parser()->cache($file);
     return parent::process_file($file);
 }
 public function action_test()
 {
     $this->template->content = View::forge('contents/add_status.twig');
 }
Beispiel #3
0
 protected static function capture($view_filename, array $view_data)
 {
     static::cache_init($view_filename);
     $file = static::parser()->cache($view_filename);
     return parent::capture($file, $view_data);
 }
Beispiel #4
0
 public static function _init()
 {
     parent::_init();
     Twig_Autoloader::register();
 }