Exemple #1
0
 public function getFlash()
 {
     if ($this->hasFlash()) {
         $flash = $_SESSION['flash'];
         unset($_SESSION['flash']);
         return Secure::toClient($flash);
     }
     return '';
 }
Exemple #2
0
 public function get($varName, $alt = '')
 {
     if (array_key_exists($varName, $this->views)) {
         return $this->views[$varName];
     } elseif (array_key_exists($varName, $this->vars)) {
         return Secure::toClient($this->vars[$varName]);
     } elseif (array_key_exists($varName, $GLOBALS)) {
         return Secure::toClient($GLOBALS[$varName]);
     }
     return $alt;
 }