* Rewrite setting:
 * remove "index.php" from url, needs to config apache/nginx manually
 */
define('USE_REWRITE', true);
/**
 * HTTPS support:
 * Use HTTPS connection when necessary, needs to config apache/nginx manually
 */
define('HTTPS_SUPPORT', false);
/**
 * Enable debug mode:
 * Disable debug mode will hide backtrace information, which is helpful for developer
 */
define('DEBUG_ENABLE', true);
/**
 * Check template and resource file update automatically
 * You can turn off this on production environment.
 */
define('TEMPLATE_UPDATE', true);
/**
 * Base URL:
 * To manually config this, uncomment the following line and change the URL
 * To use auto detect, keep this commented
 */
// define('BASE_URL', 'http://www.kookxiang.com');
Core\Request::autoDetectBaseURL();
/**
 * Database Connection:
 */
Core\Database::register('mysql:dbname=sspanel;host=localhost;charset=UTF8', 'user', 'password');
示例#2
0
/**
 * Create compressed CSS / JS file automatically
 * You should turn on this on production environment.
 */
define('OPTIMIZE_RES', true);
/**
 * Use Uglify-JS 2 to compress javascript file.
 * You must install Uglify-JS 2 on your server to use this feature.
 *
 * For more information, please refer to https://github.com/mishoo/UglifyJS2
 */
define('ENABLE_UGLIFYJS', false);
/**
 * Use Clean-CSS to compress CSS StyleSheet.
 * You must install Clean-CSS on your server to use this feature.
 *
 * For more information, please refer to https://github.com/jakubpawlowicz/clean-css
 */
define('ENABLE_CLEANCSS', false);
/**
 * Base URL:
 * To manually config this, uncomment the following line and change the URL
 * To use auto detect, keep this commented
 */
// define('BASE_URL', 'http://www.kookxiang.com');
Core\Request::autoDetectBaseURL();
/**
 * Database Connection:
 */
Core\Database::register('mysql:dbname=test;host=localhost;charset=UTF8', 'root', '');