From b3ae041a03e832aae48ed0a472090ef5bb3e753e Mon Sep 17 00:00:00 2001 From: Josh North Date: Sat, 23 Aug 2014 23:14:53 -0400 Subject: [PATCH] router class added --- application/registry.class.php | 44 ++++++++++++++++++++++++++++++++++ application/router.class.php | 24 +++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/application/registry.class.php b/application/registry.class.php index e69de29..09c7cf2 100644 --- a/application/registry.class.php +++ b/application/registry.class.php @@ -0,0 +1,44 @@ +vars[$index] = $value; + } + + /** + * + * @get variables + * + * @param mixed $index + * + * @return mixed + * + */ + public function __get($index) + { + return $this->vars[$index]; + } + +} + +?> diff --git a/application/router.class.php b/application/router.class.php index e69de29..e7eff28 100644 --- a/application/router.class.php +++ b/application/router.class.php @@ -0,0 +1,24 @@ +registry = $registry; + }