public function getFlash() { if ($this->hasFlash()) { $flash = $_SESSION['flash']; unset($_SESSION['flash']); return Secure::toClient($flash); } return ''; }
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; }