public static function initialize() { if (!is_object(self::$view)) { self::$template_path = realpath(ROOT_PATH . 'views/'); self::$view = new Savant3(array('template_path' => array(self::$template_path))); if (file_exists(AWS_PATH . 'config.inc.php') and class_exists('AWS_APP', false)) { self::$in_app = true; } } return self::$view; }