Cleaned out some unneeded code, and edited a few comments.

This commit is contained in:
2009-08-16 12:30:41 +03:00
parent cff81bfad1
commit de38d259cc
3 changed files with 12 additions and 14 deletions

View File

@@ -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();
}

View File

@@ -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;

View File

@@ -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<br />\n";