config.php
22 lines
| 616 B
| text/x-php
|
PhpLexer
|
r0 | <?php | |
$config = Config::singleton(); | |||
define('DS', DIRECTORY_SEPARATOR ); | |||
define('SYS_ROOT_ADMIN', __DIR__); | |||
$url = explode(DS, trim(SYS_ROOT_ADMIN)); | |||
array_pop($url); | |||
$path = implode(DS, $url); | |||
define('SYS_ROOT', $path); | |||
define('SYS_IMAGES', SYS_ROOT.DS.'images'); | |||
$config->set('components', 'components'); | |||
$config->set('controllersFolder', 'controllers/'); | |||
$config->set('modelsFolder', 'models/'); | |||
$config->set('viewsFolder', 'templates/'); | |||
$config->set('dbhost', 'localhost'); | |||
$config->set('dbname', 'db_app_jro'); | |||
$config->set('dbuser', 'root'); | |||
$config->set('dbpass', '1nf0j4syrc'); | |||
?> |