Code Context $categoria = $this->Categoria->findBySlug($id);
// ERRO
if (!$this->Categoria->exists($categoria['Categoria']['id'])) {
$id = 'caixas'
$categoria = array()
CategoriasController::view() - APP/Controller/CategoriasController.php, line 44
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118