예제 #1
0
 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;
 }
예제 #2
0
 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);
 }