Esempio n. 1
0
 public function indexAction()
 {
     $profilMapper = new UserMapper();
     $galleryMapper = new GalleryMapper();
     $profil = $profilMapper->getUserById($this->getRequest()->getParam('user'));
     $this->getLayout()->getHmenu()->add($this->getTranslator()->trans('menuUserList'), array('controller' => 'index'))->add($profil->getName(), array('action' => 'index', 'user' => $this->getRequest()->getParam('user')));
     $this->getView()->set('profil', $profil);
     $this->getView()->set('galleryAllowed', $this->getConfig()->get('usergallery_allowed'));
     $this->getView()->set('gallery', $galleryMapper->getCountGalleryByUser($this->getRequest()->getParam('user')));
 }