public function view($id = null) { $toolbar = $this->Requests->get($id, ['contain' => 'Panels']); $this->set('toolbar', $toolbar); }