/** View a user's account */ public function accountAction() { if ($this->_getParam('username', false)) { $users = new Users(); $this->view->users = $users->findUserAccount((string) $this->_getParam('username')); $slides = new Slides(); $this->view->images = $slides->recentFinds((string) $this->_getParam('username'), 4); } else { throw new Pas_Exception_Param('Parameter not found'); } }
/** View the individual person's account */ public function personAction() { if ($this->_getParam('as', 0)) { $id = $this->_getParam('as'); $users = new Users(); $this->view->accountdata = $users->getUserAccountData($id); $this->view->totals = $users->getCountFinds($this->getIdentityForForms()); $slides = new Slides(); $this->view->images = $slides->recentFinds($id); } else { throw new Pas_Exception_Param($this->_missingParameter); } }