public function __construct($name, $data = NULL, $type = NULL)
 {
     $smarty_ext = Kohana::config('smarty.templates_ext');
     if (Kohana::config('smarty.integration') == TRUE and Kohana::find_file('views', $name, FALSE, empty($type) ? $smarty_ext : $type)) {
         $type = empty($type) ? $smarty_ext : $type;
     }
     parent::__construct($name, $data, $type);
 }
示例#2
0
文件: MY_View.php 项目: xafr/gallery3
 /**
  * Override View_Core::__construct so that we can set the csrf value into all views.
  *
  * @see View_Core::__construct
  */
 public function __construct($name = NULL, $data = NULL, $type = NULL)
 {
     parent::__construct($name, $data, $type);
     $this->set_global("csrf", access::csrf_token());
 }
示例#3
0
 public function __construct($name, $data = NULL, $type = NULL)
 {
     parent::__construct($name, $data, $type);
 }
示例#4
0
 public function __construct($name = NULL, $data = NULL, $type = NULL)
 {
     $this->name = $name;
     parent::__construct($name, $data, $type);
 }