public static function config($path) { $data = \UtilsSandboxLoader('application/Config/' . strtr($path, '.', '/') . '.php'); if (empty($data) === false && is_array($data)) { foreach ($data as $key => $value) { self::env($key, $value); } } $data = null; }
public static function render($view, array $data = array()) { if (self::$force) { $data = self::$sharedData + $data; \UtilsSandboxLoader('application/View/' . strtr($view, '.', '/') . '.php', $data); $data = null; return null; } self::$views[] = array(strtr($view, '.', '/'), $data); return count(self::$views); }