-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
30 lines (25 loc) · 1.21 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php if (!defined('MVCious')) exit('No direct script access allowed');
$config['default_controller'] = 'rssreader';
$config['protocol'] = 'http';
$config['server_host'] = 'localhost';
$config['index_file'] = 'index.php';
$config['app_path'] = APP_PATH . '/'; // 'C:/wamp/www/rssreader/'
$config['relative_path'] = str_replace($_SERVER['DOCUMENT_ROOT'], '', str_replace('\\','/', $config['app_path'])); // 'MVCious/'
$config['server_root'] = $_SERVER['DOCUMENT_ROOT']; // 'C:/wamp/www/'
$config['server_relative_path'] = str_replace($config['index_file'], '', $_SERVER['SCRIPT_NAME']); // '/MVCious/'
$config['server_path'] = $config['protocol'] . '://' . $_SERVER['SERVER_NAME'] . str_replace($config['index_file'], '', $_SERVER['SCRIPT_NAME']); // 'http://localhost/MVCious/'
$config['folders'] = array(
'controllersFolder' => 'controllers/',
'modelsFolder' => 'models/',
'viewsFolder' => 'views/',
'librariesFolder' => 'libraries/',
'helpersFolder' => 'helpers/'
);
$config['database'] = array(
'type' => 'mysql',
'dbhost' => 'localhost',
'dbname' => 'rssreader',
'dbuser' => 'myuser',
'dbpass' => 'mypass'
);
$config['debug'] = FALSE;