Fuel\Core\Fuel_Exception [ Error ]: The requested view could not be found: layouts/
321 \Fuel::$volatile_paths = $this->request_paths; 322 323 // locate the view file 324 if (($path = \Fuel::find_file('views', $file, '.'.$this->extension, false, false)) === false) 325 { 326 throw new \Fuel_Exception('The requested view could not be found: '.\Fuel::clean_path($file)); 327 } 328 329 // Store the file path locally 330 $this->_file = $path; 331
88 { 89 $encode === null and $encode = static::$auto_encode; 90 91 if ($file !== null) 92 { 93 $this->set_filename($file); 94 } 95 96 if ($data !== null) 97 { 98 if ($encode)
69 * @param array array of values 70 * @return View 71 */ 72 public static function factory($file = null, array $data = null, $auto_encode = null) 73 { 74 return new static($file, $data, $auto_encode); 75 } 76 77 /** 78 * Sets the initial view filename and local data. 79 *
2class Controller_Content extends Controller { 3 public function action_index($session_id, $content_id) 4 { 5 $content = new Content($session_id, $content_id); 6 $layout = $content->getLayout(); 7 $view = View::factory('layouts/'.$layout); 8 $content->viewData($view); 9 10 $block = new Block($session_id, $content_id); 11 $block->viewData($view); 12 //print_r($layout);
424 logger(Fuel::L_INFO, 'Calling '.$class.'::before', __METHOD__); 425 $controller->before(); 426 } 427 428 logger(Fuel::L_INFO, 'Calling '.$class.'::'.$method, __METHOD__); 429 call_user_func_array(array($controller, $method), $this->method_params); 430 431 // Call the after method if it exists 432 if (method_exists($controller, 'after')) 433 { 434 logger(Fuel::L_INFO, 'Calling '.$class.'::after', __METHOD__);
37 38// Boot the app 39require_once APPPATH.'bootstrap.php'; 40 41// Generate the request, execute it and send the output. 42$response = Request::factory()->execute()->response(); 43 44// This will add the execution time and memory usage to the output. 45// Comment this out if you don't use it. 46$bm = Profiler::app_total(); 47$response->body(str_replace(array('{exec_time}', '{mem_usage}'), array(round($bm[0], 4), round($bm[1] / pow(1024, 2), 3)), $response->body()));