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