Exception
lithium\template\TemplateException
(code 500)
Template not found at path `/home/antonio/public_html/mepede.com.br/views/catalogositems/comecome.html.php`.
Source
Stack Trace
-
[exception]
/home/antonio/public_html/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()
/home/antonio/public_html/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}() @ ?
/home/antonio/public_html/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()
/home/antonio/public_html/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()
/home/antonio/public_html/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()
/home/antonio/public_html/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}() @ ?
/home/antonio/public_html/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()
/home/antonio/public_html/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 /**
-
/home/antonio/public_html/mepede.com.br/config/bootstrap/g11n.php::{closure} @ 170
/home/antonio/public_html/mepede.com.br/config/bootstrap/g11n.php: 173
168 169 170Filters::apply(Media::class, '_handle', function($params, $next) { 171 $params['handler'] += ['outputFilters' => []]; 172 $params['handler']['outputFilters'] += Message::aliases(); 173 return $next($params); 174}); 175 176
-
lithium\aop\Chain::run()
/home/antonio/public_html/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()
/home/antonio/public_html/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()
/home/antonio/public_html/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
/home/antonio/public_html/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\Filters::run()
/home/antonio/public_html/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\net\http\Media::render()
/home/antonio/public_html/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()
/home/antonio/public_html/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
/home/antonio/public_html/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()
/home/antonio/public_html/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()
/home/antonio/public_html/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}() @ ?
/home/antonio/public_html/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()
/home/antonio/public_html/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()
/home/antonio/public_html/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
/home/antonio/public_html/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()
/home/antonio/public_html/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 /**
-
/home/antonio/public_html/mepede.com.br/config/bootstrap/action.php::{closure} @ 52
/home/antonio/public_html/mepede.com.br/config/bootstrap/action.php: 54
49 continue; 50 } 51 $file = "{$config['path']}/config/routes.php"; 52 file_exists($file) ? call_user_func(function() use ($file) { include $file; }) : null; 53 } 54 return $next($params); 55 }); 56 57 /** 58 * This filter protects against HTTP host header attacks, by matching the `Host` header 59 * sent by the client against a known list of good hostnames. You'll need to modify
-
lithium\aop\Chain::__invoke()
/home/antonio/public_html/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
/home/antonio/public_html/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()
/home/antonio/public_html/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()
/home/antonio/public_html/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()
/home/antonio/public_html/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]
/home/antonio/public_html/mepede.com.br/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 44