示例#1
0
<?php

use Smooth\Config\Config;
Config::set('Http', array('key' => 'http', 'factory' => SYSPATH . 'http/Request.php'));
示例#2
0
<?php

use Smooth\Config\Config;
Config::set('App', array('url' => '/Smooth/', 'web_path' => 'Smooth', 'charset' => 'UTF-8', 'timezone' => 'America/Chicago'));
示例#3
0
<?php

use Smooth\Config\Config;
Config::set('Errors', array('environment' => 'development', 'all_strict' => 1));
示例#4
0
<?php

use Smooth\Config\Config;
Config::set('Loader', array('libraries' => array('Math', 'Db', 'Crypt', 'Url', 'Session', 'Security', 'Cache')));
示例#5
0
<?php

use Smooth\Config\Config;
Config::set('Dispatcher', array('baseController' => 'welcome', 'missingView' => '404View'));
// Limit: 1 url rewrite(beta; test period), due to issues, which will be fixed and added into the next beta version of Smooth;
Config::set('Routes', array());