Browse Source

Add Env.Request().

namespace
Alexander Demidov 11 years ago
committed by Alexander Demidov
parent
commit
8133695eae
  1. 8
      classes/Env.class.php

8
classes/Env.class.php

@ -47,6 +47,14 @@ class Env
}
return (isset($_POST[$key])) ? $_POST[$key] : $default;
}
static public function Request($key = null, $default = null)
{
if ($key === null) {
return $_REQUEST;
}
return (isset($_REQUEST[$key])) ? $_REQUEST[$key] : $default;
}
static public function Cookie($key = null, $default = false)
{

Loading…
Cancel
Save