public function getpinreqAction() { if ($this->auth->hasIdentity()) { $getpinreq = new Application_Model_Images($this->registry['DB']); $this->view->results = $getpinreq->getPinReq(); } }