Пример #1
0
 public function loadConfigs()
 {
     Config::loadFile('global');
     if (Config::get('dev')) {
         Config::loadFile('local');
     }
 }
Пример #2
0
 protected static function inFile($message, $level)
 {
     $path = Config::get('system_path') . '/' . $level . '.log';
     $file = new File($path);
     $file->data($message);
     $file->save();
 }
Пример #3
0
 public static function setViewPath()
 {
     self::$viewPath = Config::get('system_path') . '/modules/' . self::$configs['Module'] . '/Views';
     set_include_path(get_include_path() . PATH_SEPARATOR . self::$viewPath);
 }
Пример #4
0
 /**
  * Управляющие параметры
  * @return array
  */
 public function getControlParams()
 {
     return array('private' => array('Module' => $this->module, 'Controller' => $this->controller, 'Action' => $this->action, 'ApplicationPath' => Config::get('system_path') . '/modules/' . $this->module));
 }