/** * Sets the view filename. * * $view->set_filename($file); * * @param string view filename * @return View * @throws Fuel_Exception */ public function set_filename($file) { // set find_file's one-time-only search paths \Fuel::$volatile_paths = $this->request_paths; // locate the view file if (($path = \Fuel::find_file('views', $file, '.' . $this->extension, false, false)) === false) { throw new \Fuel_Exception('The requested view could not be found: ' . \Fuel::clean_path($file)); } // Store the file path locally $this->_file = $path; return $this; }