Updated install

Added Form manager
Added session messages display

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
Gregory PLANCHAT 2011-11-18 08:05:42 +01:00
commit 5acde87794
220 changed files with 1962 additions and 1134 deletions

View file

@ -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');