Code Context public function view($id = null) {
$agenda = $this->Agenda->findByCodigo($id);
if (!$this->Agenda->exists($agenda['Agenda']['id'])) {
$id = '0015'
$agenda = array()
AgendasController::view() - APP/Controller/AgendasController.php, line 96
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
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