Esempio n. 1
0
 /**
  * set flash message to view object.
  */
 protected function setFlashMessage()
 {
     if ($message = $this->session->get('flash-message')) {
         if ($this->session->get('flash-error')) {
             $this->view->error($message);
         } else {
             $this->view->message($message);
         }
     }
 }