public function set_filename($name, $type = NULL) { if ($path = Kohana::find_file('themes/' . theme::$name . '/views', $name) or $path = Kohana::find_file(theme::$name . '/views', $name) or $path = Kohana::find_file('default/views', $name)) { $this->kohana_filename = $path; $this->kohana_filetype = EXT; } else { parent::set_filename($name, $type); } return $this; }
public function set_filename($name, $type = NULL) { if ($path = Kohana::find_file('themes/' . theme::$name . '/views', $name, FALSE, Kohana::config('bc.view_ext')) or $path = Kohana::find_file(theme::$name . '/views', $name, FALSE, Kohana::config('bc.view_ext')) or $path = Kohana::find_file('views', $name, FALSE, Kohana::config('bc.view_ext'))) { $this->kohana_filename = $path; $this->kohana_filetype = Kohana::config('bc.view_ext'); } else { parent::set_filename($name, $type); } return $this; }
public function set_filename($name, $type = NULL) { $theme = Kohana::config('filebrowser.theme'); if (Kohana::find_file('views/../../../config/themes/' . $theme . '/', $name)) { parent::set_filename('../../../config/themes/' . $theme . '/' . $name, $type); } elseif (Kohana::find_file('views/../../../config/themes/default/', $name)) { parent::set_filename('../../../config/themes/default/' . $name, $type); } else { parent::set_filename('../../../config/themes/' . $theme . '/' . $name, $type); } return $this; }
/** * Override the set_filename property accessor to keep a record of the view name, letting us check for * plugins which are linked to this view's path. */ public function set_filename($name, $type = NULL) { parent::set_filename($name, $type); $this->viewname = $name; }