Beispiel #1
0
 public static function get($key)
 {
     $session = new Ajde_Session('AC.Flash');
     if ($session->has($key)) {
         return $session->getOnce($key);
     } else {
         return false;
     }
 }
Beispiel #2
0
 public static function get($key)
 {
     $session = new Ajde_Session('AC.Flash');
     if ($session->has($key)) {
         // Disable the cache, as getting a flashed string means outputting some message to the user
         Ajde_Cache::getInstance()->disable();
         return $session->getOnce($key);
     } else {
         return false;
     }
 }