Updated install
Added Form manager Added session messages display Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
parent
9636b4bb00
commit
5acde87794
220 changed files with 1962 additions and 1134 deletions
|
|
@ -315,12 +315,12 @@ class Wootook
|
|||
return $config;
|
||||
}
|
||||
|
||||
public static function setConfig($path = null, $value)
|
||||
public static function setConfig($path, $value)
|
||||
{
|
||||
self::_loadConfig();
|
||||
|
||||
if ($path === null || !is_string($path)) {
|
||||
return self::$_config;
|
||||
return self::$_config = $value;
|
||||
}
|
||||
$config = &self::$_config;
|
||||
foreach (explode('/', $path) as $chunk) {
|
||||
|
|
@ -334,6 +334,12 @@ class Wootook
|
|||
return true;
|
||||
}
|
||||
|
||||
public static function writeConfig(Array $config)
|
||||
{
|
||||
file_put_contents(ROOT_PATH . DIRECTORY_SEPARATOR . 'config.php',
|
||||
'<' . '?p' . 'hp ' . var_export($config, true) . ';');
|
||||
}
|
||||
|
||||
public static function getBaseUrl()
|
||||
{
|
||||
return self::getConfig('global/web/base_url');
|
||||
|
|
|
|||
Loading…
Reference in a new issue