/** * Envia para o template tudo que for global */ private function assignGlobals() { $constantes = get_defined_constants(true); if ($this->_decodeVars) { $_GET = UtilString::utf8ArrayDecode($_GET); } $varsArray = array("post" => $_POST, "session" => $_SESSION, "get" => $_GET, "const" => $constantes['user'], "url" => Samus_Keeper::getURL(), "urlVar" => Samus_Keeper::getURLVar()); $this->smarty->assign("samus", $varsArray); }