public function slambookAction() { if ($this->auth->hasIdentity()) { $this->view->mydetails = $this->authIdentity; $getslambook = new Application_Model_Apps($this->registry['DB']); $this->view->slambook = $getslambook->slambook(); } }