Fuel\Core\Fuel_Exception [ Error ]: The requested view could not be found: error/404
308309<?php */310<?php public function set_filename($file)311<?php {312<?php if (($path = \Fuel::find_file('views', $file, '.'.$this->extension, false, false)) === false)313<?php {314<?php throw new \Fuel_Exception('The requested view could not be found: '.\Fuel::clean_path($file));315<?php }316<?php317<?php // Store the file path locally318<?php $this->_file = $path;<?php
8586<?php {87<?php $encode === null and $encode = static::$auto_encode;88<?php89<?php if ($file !== null)90<?php {91<?php $this->set_filename($file);92<?php }93<?php94<?php if ($data !== null)95<?php {<?php if ($encode)
6667<?php * @param array array of values68<?php * @return View69<?php */70<?php public static function factory($file = null, array $data = null, $auto_encode = null)71<?php {72<?php return new static($file, $data, $auto_encode);73<?php }74<?php75<?php /**76<?php * Sets the initial view filename and local data.<?php *
2930<?php $this->template->content = View::factory('pages/'.$uri_arr[0]);31<?php }32<?php catch (Exception $e) {33<?php // Set a HTTP 404 output header34<?php $this->response->status = 404;35<?php $this->template->content = View::factory('error/404');36<?php }37<?php }<?php }
376377<?php logger(Fuel::L_INFO, 'Calling '.$class.'::before', __METHOD__);378<?php $controller->before();379<?php }380<?php381<?php logger(Fuel::L_INFO, 'Calling '.$class.'::'.$method, __METHOD__);382<?php call_user_func_array(array($controller, $method), $this->method_params);383<?php384<?php // Call the after method if it exists385<?php if (method_exists($controller, 'after'))386<?php {<?php logger(Fuel::L_INFO, 'Calling '.$class.'::after', __METHOD__);
161162<?php $response->send(true);163<?php exit;164<?php }165<?php else166<?php {167<?php $request = \Request::factory(\Config::get('routes._404_'), $route_request)->execute();168<?php169<?php if ($return)170<?php {171<?php return $request->response;<?php }
334335<?php {336<?php logger(Fuel::L_INFO, 'Called', __METHOD__);337<?php338<?php if ( ! $this->route)339<?php {340<?php $this->response = static::show_404(true);341<?php static::reset_request();342<?php return $this;343<?php }344<?php<?php $controller_prefix = '\\'.($this->module ? ucfirst($this->module).'\\' : '').'Controller_';
3738<?php39<?php // Boot the app40<?php require_once APPPATH.'bootstrap.php';41<?php42<?php // Generate the request, execute it and send the output.43<?php $response = Request::factory()->execute()->response();44<?php45<?php // This will add the execution time and memory usage to the output.46<?php // Comment this out if you don't use it.47<?php $bm = Profiler::app_total();<?php $response->body(str_replace(array('{exec_time}', '{mem_usage}'), array(round($bm[0], 4), round($bm[1] / pow(1024, 2), 3)), $response->body()));