Example #1
0
 public function indexAction()
 {
     $login = $this->getRequest()->getParam('membre');
     if (empty($login)) {
         $this->_redirect('/');
     }
     $mapperMembre = new Application_Model_Mapper_Membre();
     $membre = $mapperMembre->getByLogin($login);
     $this->view->membre = $membre;
     $mapperTweet = new Application_Model_Mapper_Tweet();
     $tweets = $mapperTweet->getByMembre_id($membre->getId());
     $this->view->tweets = $tweets;
     $session = new Zend_Session_Namespace('messages');
     if (isset($session->tweetSucces)) {
         $this->view->msgSucces = $session->tweetSucces;
         unset($session->tweetSucces);
     }
 }