-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
61 lines (48 loc) · 1.16 KB
/
config.php
File metadata and controls
61 lines (48 loc) · 1.16 KB
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
<?php
// $this directs to WfConfig class
$this
->set('db_host', 'localhost')
->set('db_name', 'web2face')
->set('db_user', 'root')
->set('db_pass', 'freddyduck2')
->set('gzip', true)
->set('cookie_expire', 3600 * 24 * 30)
->set('cookie_domain', '~')
->set('developer_name', 'paulcodiny')
->set('developer_mail', 'paulcodiny@gmail.com')
->set('dir_root', dirname(__FILE__))
->set('dir_cache', 'wf/cache/')
->set('dir_site_assets', 'site/assets/')
->set('dir_site_pages', 'site/pages/')
->set('dir_wf_assets', 'wf/assets/')
->set('dir_wf_pages', 'wf/pages/')
// default classes
->set('class_names', array(
'default_route' => 'WfRoute'
))
->set('classes', array(
'site' => 'WfSite',
'request' => 'WfRequest',
'response' => 'WfResponse',
'mysql' => 'WfMysql',
'routing' => array(
'class' => 'WfRouting',
'params' => array(
'routeMap' => array(
'about' => array(
'url' => '|/about.html$|',
'page' => 'default'
),
'admin' => array(
'url' => '|/admin|',
'page' => 'admin'
),
'homepage' => array(
'url' => '|/|',
'page' => 'default'
),
)
)
)
))
;