public function getfriendsrequestAction() { if ($this->auth->hasIdentity()) { $getreq = new Application_Model_Friend($this->registry['DB']); $this->view->results = $getreq->getfriendsrequest(); } }