Skip to content

Instantly share code, notes, and snippets.

@jwerle
Created June 11, 2014 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwerle/2344f38acd98f84af879 to your computer and use it in GitHub Desktop.
Save jwerle/2344f38acd98f84af879 to your computer and use it in GitHub Desktop.
#define X(n) \
if (isset($opts[ # n ])) { \
self::$ n = $opts[ # n]; \
}
if (isset($opts['view'])) {
self::$view = $opts['view'];
}
if (isset($opts['GET'])) {
self::$GET= $opts['GET'];
}
if (isset($opts['POST'])) {
self::$POST = $opts['POST'];
}
if (isset($opts['SERVER'])) {
self::$SERVER = $opts['SERVER'];
}
if (isset($opts['COOKIE'])) {
self::$COOKIE = $opts['COOKIE'];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment