public function loadConfigs() { Config::loadFile('global'); if (Config::get('dev')) { Config::loadFile('local'); } }
protected static function inFile($message, $level) { $path = Config::get('system_path') . '/' . $level . '.log'; $file = new File($path); $file->data($message); $file->save(); }
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); }
/** * Управляющие параметры * @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)); }