Ejemplo n.º 1
0
 /** Set up index page
  */
 public function indexAction()
 {
     // If user isn't logged in, show login form
     if (null === $this->_auth->getIdentity()) {
         $this->_helper->redirector->gotoRouteAndExit(array('module' => 'users', 'controller' => 'index'));
     } else {
         $user = $this->_auth->getIdentity();
         $id = $user->id;
         $this->view->users = $this->_users->getUserProfile($id);
         $finds = new Finds();
         $this->view->finds = $finds->getFindsRecorded($id);
         $this->view->totals = $finds->getTotalFindsRecorded($id);
     }
 }