forked from xeoncross/micromvc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.config.php
100 lines (83 loc) · 1.89 KB
/
sample.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
/**
* Config
*
* Core system configuration file
*
* @package MicroMVC
* @author David Pennington
* @copyright (c) 2010 MicroMVC Framework
* @license http://micromvc.com/license
********************************** 80 Columns *********************************
*/
// Default controller
$config['index'] = 'example/index';
// Default 404 controller
$config['404'] = 'example/404';
// Base site url
$config['site_url'] = '/';
// Enable debug mode?
$config['debug_mode'] = TRUE;
// Current theme
$config['theme'] = 'theme';
// Load init file?
$config['init'] = FALSE;
// Path to log directory
$config['log_path'] = 'system/log/';
// Default language file
$config['language'] = 'en';
/**
* Database
*
* This system uses PDO to connect to MySQL, SQLite, or PostgreSQL.
* Visit http://us3.php.net/manual/en/pdo.drivers.php for more info.
*/
$config['database'] = array(
'default' => array(
'dns' => "mysql:dbname=micromvc;host=127.0.0.1;port=3306",
'username' => 'root',
'password' => '',
'params' => array()
),
);
// Disabled modules
$config['disabled_modules'] = array(
'unittest',
);
/**
* URL Routing
*
* Regex can also be used to define routes
*/
$config['routes'] = array(
//'page/name' => 'error/404' // Or hide pages
);
/**
* System Events
*/
$config['events'] = array(
//'post_controller' => 'Class::method',
);
/**
* Cookie Handling
*
* To insure your cookies are secure, please choose a long, random key!
* @link http://php.net/setcookie
*/
$config['cookie'] = array(
'key' => 'key',
'timeout' => time()+(60*60*4), // Ignore submitted cookies older than 4 hours
'expires' => 0, // Expire on browser close
'path' => '/',
'domain' => '',
'secure' => '',
'httponly' => '',
);
/**
* API Keys and Secrets
*
* Insert you API keys and other secrets here.
* Use for Akismet, ReCaptcha, Facebook, and more!
*/
//$config['-----_api_key'] = '...';
return $config;