From de38d259cc83219ba6452d4ea7089ee6c2b6fd51 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 16 Aug 2009 12:30:41 +0300 Subject: [PATCH] Cleaned out some unneeded code, and edited a few comments. --- vendor/zynapse/action_base.php | 8 ++++++-- vendor/zynapse/action_environment.php | 13 ++----------- vendor/zynapse/zynapse.php | 5 ++++- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/vendor/zynapse/action_base.php b/vendor/zynapse/action_base.php index de198b1..a74645b 100644 --- a/vendor/zynapse/action_base.php +++ b/vendor/zynapse/action_base.php @@ -35,13 +35,13 @@ class ActionBase { public - # components + # Components $env, // ActionEnvironment $view, // ActionView $locale, // ActionLocale $log, // ActionLog - # paths + # Paths $apps_path, $lib_path, $log_path, @@ -52,6 +52,10 @@ class ActionBase { function __construct () { + + } + + function init () { $this->set_paths(); } diff --git a/vendor/zynapse/action_environment.php b/vendor/zynapse/action_environment.php index 5e63997..3b4f415 100644 --- a/vendor/zynapse/action_environment.php +++ b/vendor/zynapse/action_environment.php @@ -35,21 +35,12 @@ class ActionEnvironment { public - # main + # Main $env, $mode, $root, - # paths - $apps_path, - $lib_path, - $log_path, - $public_path, - $tmp_path, - $cache_path, - $script_path, - - # misc + # Misc. $is_windows, $path_separator; diff --git a/vendor/zynapse/zynapse.php b/vendor/zynapse/zynapse.php index 94833a0..e5515d3 100644 --- a/vendor/zynapse/zynapse.php +++ b/vendor/zynapse/zynapse.php @@ -34,6 +34,8 @@ class Zynapse { public static + + # Action Classes $env, // ActionEnvironment $base, // ActionBase $view, // ActionView @@ -47,8 +49,9 @@ class Zynapse { require_once(ZNAP_LIB_ROOT . "/active_session.php"); self::$env = new ActionEnvironment(); - self::$base = new ActionBase(); + self::$base = new ActionBase(); + self::$base->init(); self::$base->env =& self::$env; echo "hello world
\n";