/**
  * invalidates flash messages every time
  * translates all flash messages, DO NOT CALL TRANSLATE() IN FLASHMESSAGE() DIRECTLY!
  *
  * @param string $message
  * @param string $type
  */
 public function flashMessage($message, $type = self::FLASH_MESSAGE_INFO)
 {
     parent::flashMessage($this->translate($message), $type);
     //		parent::flashMessage($message, $type);
     $this->invalidateControl('flashes');
 }
Beispiel #2
0
 public function flash($message, $type = 'info')
 {
     $this->payload->flashes[] = array('msg' => $message, 'type' => $type);
     parent::flashMessage($message, $type);
     $this->invalidateControl('flash');
 }