Erro
Sorry! The page you were looking for could not be found.
Go to Homepage
Exception
lithium\template\TemplateException
(code 500)
Template not found at path `/app/app/views/elements/pages/.html.php`.
Source
Stack Trace
-
[exception]
/app/libraries/lithium/template/view/adapter/File.php: 235
230 if (!file_exists($path = Text::insert($path, $params))) { 231 continue; 232 } 233 return $path; 234 } 235 throw new TemplateException("Template not found at path `{$path}`."); 236 } 237} 238 239
-
lithium\template\view\adapter\File::template()
/app/libraries/lithium/template/view/adapter/File.php: 137
132 * @return string 133 */ 134 public function template($type, array $params) { 135 $library = Libraries::get(isset($params['library']) ? $params['library'] : true); 136 $params['library'] = $library['path']; 137 $path = $this->_paths($type, $params); 138 139 if ($this->_compile) { 140 $compiler = $this->_classes['compiler']; 141 $path = $compiler::template($path, $this->_config['compiler']); 142 }
-
lithium\template\View::lithium\template\{closure}() @ ?
/app/libraries/lithium/template/View.php: 395
390 'loader' => $_loader, 391 'renderer' => $_renderer 392 ]; 393 394 $result = Filters::run($this, __FUNCTION__, $params, function($params) { 395 $template = $params['loader']->template($params['step']['path'], $params['params']); 396 return $params['renderer']->render($template, $params['data'], $params['options']); 397 }); 398 399 if (is_array($step['capture'])) { 400 switch (key($step['capture'])) {
-
lithium\aop\Filters::run()
/app/libraries/lithium/aop/Filters.php: 231
226 */ 227 public static function run($class, $method, array $params, $implementation) { 228 $implementation = static::_bcImplementation($class, $method, $params, $implementation); 229 230 if (!static::hasApplied($class, $method)) { 231 return $implementation($params); 232 } 233 return static::_chain($class, $method)->run($params, $implementation); 234 } 235 236 /**
-
lithium\template\View::_step()
/app/libraries/lithium/template/View.php: 397
392 ]; 393 394 $result = Filters::run($this, __FUNCTION__, $params, function($params) { 395 $template = $params['loader']->template($params['step']['path'], $params['params']); 396 return $params['renderer']->render($template, $params['data'], $params['options']); 397 }); 398 399 if (is_array($step['capture'])) { 400 switch (key($step['capture'])) { 401 case 'context': 402 $options['context'][current($step['capture'])] = $result;
-
lithium\template\View::render()
/app/libraries/lithium/template/View.php: 331
326 $params[$name] = $value; 327 $result = $this->_step($step, $params, $data, $options); 328 } 329 continue; 330 } 331 $result = $this->_step((array) $step, $params, $data, $options); 332 } 333 return $result; 334 } 335 336 /**
-
lithium\template\view\Renderer::_render()
/app/libraries/lithium/template/view/Renderer.php: 542
537 * @return string Returns a the rendered template content as a string. 538 */ 539 protected function _render($type, $template, array $data = [], array $options = []) { 540 $context = $this->_options; 541 $options += $this->_options; 542 $result = $this->_view->render($type, $data + $this->_data, compact('template') + $options); 543 $this->_options = $context; 544 return $result; 545 } 546} 547
-
include
/app/app/resources/tmp/cache/templates/template_pages_view.html_5704437_1593268850_328.php: 7
2 if ($page->type != 'product') { 3 echo $this->_render( 4 'element', 5 'pages/' . $template->file, 6 array( 7 'page' => $page 8 ) 9 ); 10 } else { 11 echo $this->_render( 12 'element',
-
lithium\template\view\adapter\File::render()
/app/libraries/lithium/template/view/adapter/File.php: 123
118 } elseif ($this->_view) { 119 extract((array) $this->_view->outputFilters, EXTR_OVERWRITE); 120 } 121 122 ob_start(); 123 include $template__; 124 return ob_get_clean(); 125 } 126 127 /** 128 * Returns a template file name
-
lithium\template\View::lithium\template\{closure}() @ ?
/app/libraries/lithium/template/View.php: 396
391 'renderer' => $_renderer 392 ]; 393 394 $result = Filters::run($this, __FUNCTION__, $params, function($params) { 395 $template = $params['loader']->template($params['step']['path'], $params['params']); 396 return $params['renderer']->render($template, $params['data'], $params['options']); 397 }); 398 399 if (is_array($step['capture'])) { 400 switch (key($step['capture'])) { 401 case 'context':
-
lithium\aop\Filters::run()
/app/libraries/lithium/aop/Filters.php: 231
226 */ 227 public static function run($class, $method, array $params, $implementation) { 228 $implementation = static::_bcImplementation($class, $method, $params, $implementation); 229 230 if (!static::hasApplied($class, $method)) { 231 return $implementation($params); 232 } 233 return static::_chain($class, $method)->run($params, $implementation); 234 } 235 236 /**
-
lithium\template\View::_step()
/app/libraries/lithium/template/View.php: 397
392 ]; 393 394 $result = Filters::run($this, __FUNCTION__, $params, function($params) { 395 $template = $params['loader']->template($params['step']['path'], $params['params']); 396 return $params['renderer']->render($template, $params['data'], $params['options']); 397 }); 398 399 if (is_array($step['capture'])) { 400 switch (key($step['capture'])) { 401 case 'context': 402 $options['context'][current($step['capture'])] = $result;
-
lithium\template\View::render()
/app/libraries/lithium/template/View.php: 331
326 $params[$name] = $value; 327 $result = $this->_step($step, $params, $data, $options); 328 } 329 continue; 330 } 331 $result = $this->_step((array) $step, $params, $data, $options); 332 } 333 return $result; 334 } 335 336 /**
-
lithium\net\http\Media::lithium\net\http\{closure}() @ ?
/app/libraries/lithium/net/http/Media.php: 845
840 case ($handler['template'] === false) && is_string($data): 841 return $data; 842 case $handler['view']: 843 unset($options['view']); 844 $instance = static::view($handler, $data, $response, $options); 845 return $instance->render('all', (array) $data, $options); 846 default: 847 throw new MediaException("Could not interpret type settings for handler."); 848 } 849 }); 850 }
-
lithium\aop\Chain::__invoke()
/app/libraries/lithium/aop/Chain.php: 156
151 if (($filter = next($this->_filters)) !== false) { 152 return $filter($params, $this); 153 } 154 155 $implementation = $this->_implementation; 156 return $implementation($params); 157 } 158 159 /* Deprecated / BC */ 160 161 /**
-
/app/app/config/bootstrap/g11n.php::{closure} @ 206
/app/app/config/bootstrap/g11n.php: 209
204 * @see lithiumm\net\http\Media 205 */ 206Media::applyFilter('_handle', function($params, $next) { 207 $params['handler'] += array('outputFilters' => array()); 208 $params['handler']['outputFilters'] += Message::aliases(); 209 return $next($params); 210}); 211 212 213
-
lithium\aop\Chain::run()
/app/libraries/lithium/aop/Chain.php: 123
118 */ 119 public function run(array $params, $implementation) { 120 $this->_implementation = $implementation; 121 122 $filter = reset($this->_filters); 123 $result = $filter($params, $this); 124 125 $this->_implementation = null; 126 return $result; 127 } 128
-
lithium\aop\Filters::run()
/app/libraries/lithium/aop/Filters.php: 233
228 $implementation = static::_bcImplementation($class, $method, $params, $implementation); 229 230 if (!static::hasApplied($class, $method)) { 231 return $implementation($params); 232 } 233 return static::_chain($class, $method)->run($params, $implementation); 234 } 235 236 /** 237 * Clears filters optionally constrained by class or class and method combination. 238 *
-
lithium\net\http\Media::_handle()
/app/libraries/lithium/net/http/Media.php: 849
844 $instance = static::view($handler, $data, $response, $options); 845 return $instance->render('all', (array) $data, $options); 846 default: 847 throw new MediaException("Could not interpret type settings for handler."); 848 } 849 }); 850 } 851 852 /** 853 * Helper method for listing registered media types. Returns all types, or a single 854 * content type if a specific type is specified.
-
lithium\net\http\Media::render()::{closure} @ 685
/app/libraries/lithium/net/http/Media.php: 695
690 691 $header = current($mimeTypes); 692 $header .= $response->encoding ? "; charset={$response->encoding}" : ''; 693 $response->headers('Content-Type', $header); 694 } 695 $response->body(static::_handle($handler, $data, $response)); 696 697 return $response; 698 }); 699 } 700
-
lithium\aop\Chain::__invoke()
/app/libraries/lithium/aop/Chain.php: 156
151 if (($filter = next($this->_filters)) !== false) { 152 return $filter($params, $this); 153 } 154 155 $implementation = $this->_implementation; 156 return $implementation($params); 157 } 158 159 /* Deprecated / BC */ 160 161 /**
-
/app/app/config/bootstrap/media.php::{closure} @ 66
/app/app/config/bootstrap/media.php: 72
67 $request = $params['options']['request']; 68 $admin = isset($request->params['admin']) ? $request->params['admin'] : false; 69 if ($admin) { 70 $params['options']['layout'] = (isset($params['options']['layout']) && $params['options']['layout'] != 'default') ? $params['options']['layout'] : 'admin'; 71 } 72 return $next($params); 73 }); 74 75 76
-
lithium\aop\Chain::run()
/app/libraries/lithium/aop/Chain.php: 123
118 */ 119 public function run(array $params, $implementation) { 120 $this->_implementation = $implementation; 121 122 $filter = reset($this->_filters); 123 $result = $filter($params, $this); 124 125 $this->_implementation = null; 126 return $result; 127 } 128
-
lithium\aop\Filters::run()
/app/libraries/lithium/aop/Filters.php: 233
228 $implementation = static::_bcImplementation($class, $method, $params, $implementation); 229 230 if (!static::hasApplied($class, $method)) { 231 return $implementation($params); 232 } 233 return static::_chain($class, $method)->run($params, $implementation); 234 } 235 236 /** 237 * Clears filters optionally constrained by class or class and method combination. 238 *
-
lithium\net\http\Media::render()
/app/libraries/lithium/net/http/Media.php: 698
693 $response->headers('Content-Type', $header); 694 } 695 $response->body(static::_handle($handler, $data, $response)); 696 697 return $response; 698 }); 699 } 700 701 /** 702 * Configures a template object instance, based on a media handler configuration. 703 *
-
lithium\action\Controller::render()
/app/libraries/lithium/action/Controller.php: 293
288 289 if ($options['head']) { 290 return; 291 } 292 $response = $media::render($this->response, $this->_render['data'], $options + [ 293 'request' => $this->request 294 ]); 295 return ($this->response = $response ?: $this->response); 296 } 297 298 /**
-
lithium\action\Controller::__invoke()::{closure} @ 197
/app/libraries/lithium/action/Controller.php: 222
217 $this->set($result); 218 } 219 } 220 221 if (!$this->_render['hasRendered'] && $this->_render['auto']) { 222 $this->render(); 223 } 224 return $this->response; 225 }); 226 } 227
-
lithium\aop\Filters::run()
/app/libraries/lithium/aop/Filters.php: 231
226 */ 227 public static function run($class, $method, array $params, $implementation) { 228 $implementation = static::_bcImplementation($class, $method, $params, $implementation); 229 230 if (!static::hasApplied($class, $method)) { 231 return $implementation($params); 232 } 233 return static::_chain($class, $method)->run($params, $implementation); 234 } 235 236 /**
-
lithium\action\Controller::__invoke()
/app/libraries/lithium/action/Controller.php: 225
220 221 if (!$this->_render['hasRendered'] && $this->_render['auto']) { 222 $this->render(); 223 } 224 return $this->response; 225 }); 226 } 227 228 /** 229 * This method is used to pass along any data from the controller to the view and layout 230 *
-
lithium\action\Dispatcher::lithium\action\{closure}() @ ?
/app/libraries/lithium/action/Dispatcher.php: 277
272 */ 273 protected static function _call($callable, $request, $params) { 274 $params = compact('callable', 'request', 'params'); 275 return Filters::run(get_called_class(), __FUNCTION__, $params, function($params) { 276 if (is_callable($callable = $params['callable'])) { 277 return $callable($params['request'], $params['params']); 278 } 279 throw new DispatchException('Result not callable.'); 280 }); 281 } 282}
-
lithium\aop\Filters::run()
/app/libraries/lithium/aop/Filters.php: 231
226 */ 227 public static function run($class, $method, array $params, $implementation) { 228 $implementation = static::_bcImplementation($class, $method, $params, $implementation); 229 230 if (!static::hasApplied($class, $method)) { 231 return $implementation($params); 232 } 233 return static::_chain($class, $method)->run($params, $implementation); 234 } 235 236 /**
-
lithium\action\Dispatcher::_call()
/app/libraries/lithium/action/Dispatcher.php: 280
275 return Filters::run(get_called_class(), __FUNCTION__, $params, function($params) { 276 if (is_callable($callable = $params['callable'])) { 277 return $callable($params['request'], $params['params']); 278 } 279 throw new DispatchException('Result not callable.'); 280 }); 281 } 282} 283 284
-
lithium\action\Dispatcher::run()::{closure} @ 154
/app/libraries/lithium/action/Dispatcher.php: 169
164 165 if (!$params) { 166 throw new DispatchException('Could not route request.'); 167 } 168 $callable = static::_callable($result, $params, $options); 169 return static::_call($callable, $result, $params); 170 }); 171 } 172 173 /** 174 * Attempts to apply a set of formatting rules from `$_rules` to a `$params` array, where each
-
lithium\aop\Chain::__invoke()
/app/libraries/lithium/aop/Chain.php: 156
151 if (($filter = next($this->_filters)) !== false) { 152 return $filter($params, $this); 153 } 154 155 $implementation = $this->_implementation; 156 return $implementation($params); 157 } 158 159 /* Deprecated / BC */ 160 161 /**
-
/app/app/config/bootstrap/action.php::{closure} @ 68
/app/app/config/bootstrap/action.php: 70
65 continue; 66 } 67 $file = "{$config['path']}/config/routes.php"; 68 file_exists($file) ? call_user_func(function() use ($file) { include $file; }) : null; 69 } 70 return $next($params); 71 }); 72 73 /* 74 Filters::apply(Dispatcher::class, '_callable', function($params, $next) { 75 // Custom "before" logic goes here.
-
lithium\aop\Chain::__invoke()
/app/libraries/lithium/aop/Chain.php: 152
147 * @return mixed The return value of the next filter. If there is no 148 * next filter, the return value of the implementation. 149 */ 150 public function __invoke(array $params) { 151 if (($filter = next($this->_filters)) !== false) { 152 return $filter($params, $this); 153 } 154 155 $implementation = $this->_implementation; 156 return $implementation($params); 157 }
-
lithium\core\ErrorHandler::apply()::{closure} @ 242
/app/libraries/lithium/core/ErrorHandler.php: 246
241 242 Filters::apply($class, $method, function($params, $next) use ($conditions, $handler) { 243 $wrap = static::$_exceptionHandler; 244 245 try { 246 return $next($params); 247 } catch (Exception $e) { 248 if (!static::matches($e, $conditions)) { 249 throw $e; 250 } 251 return $handler($wrap($e, true), $params);
-
lithium\aop\Chain::run()
/app/libraries/lithium/aop/Chain.php: 123
118 */ 119 public function run(array $params, $implementation) { 120 $this->_implementation = $implementation; 121 122 $filter = reset($this->_filters); 123 $result = $filter($params, $this); 124 125 $this->_implementation = null; 126 return $result; 127 } 128
-
lithium\aop\Filters::run()
/app/libraries/lithium/aop/Filters.php: 233
228 $implementation = static::_bcImplementation($class, $method, $params, $implementation); 229 230 if (!static::hasApplied($class, $method)) { 231 return $implementation($params); 232 } 233 return static::_chain($class, $method)->run($params, $implementation); 234 } 235 236 /** 237 * Clears filters optionally constrained by class or class and method combination. 238 *
-
lithium\action\Dispatcher::run()
/app/libraries/lithium/action/Dispatcher.php: 170
165 if (!$params) { 166 throw new DispatchException('Could not route request.'); 167 } 168 $callable = static::_callable($result, $params, $options); 169 return static::_call($callable, $result, $params); 170 }); 171 } 172 173 /** 174 * Attempts to apply a set of formatting rules from `$_rules` to a `$params` array, where each 175 * formatting rule is applied if the key of the rule in `$_rules` is present and not empty in
-
[main]
/app/app/webroot/index.php: 41
36 * @see lithium\action\Response 37 * @see lithium\action\Dispatcher 38 * @see lithium\net\http\Router 39 * @see lithium\action\Controller 40 */ 41 echo lithium\action\Dispatcher::run(new lithium\action\Request()); 42 43