public function getfriendslistAction() { if ($this->auth->hasIdentity()) { $frd = new Application_Model_Friend($this->registry['DB']); $userid = $this->getRequest()->getParam('userid'); $this->view->results = $frd->getfriends($userid); } }