コード例 #1
0
 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
ファイル: MY_View.php プロジェクト: roberto722/omgt
 public function __construct($name, $data = NULL, $type = NULL)
 {
     parent::__construct($name, $data, $type);
 }
コード例 #4
0
ファイル: MY_View.php プロジェクト: Dirichi/Ushahidi_Web
 public function __construct($name = NULL, $data = NULL, $type = NULL)
 {
     $this->name = $name;
     parent::__construct($name, $data, $type);
 }