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); }
/** * 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()); }
public function __construct($name, $data = NULL, $type = NULL) { parent::__construct($name, $data, $type); }
public function __construct($name = NULL, $data = NULL, $type = NULL) { $this->name = $name; parent::__construct($name, $data, $type); }