-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
35 lines (27 loc) · 944 Bytes
/
index.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
define('APP', './application');
require_once 'Zend/Controller/Action.php';
require_once 'Zend/Controller/Front.php';
require_once 'Zend/Registry.php';
require_once 'Zend/Session.php';
require_once 'Zend/Cache.php';
require_once APP.'/DbManager.class.php';
require_once APP.'/MySmarty.class.php';
require_once APP.'/CheckUtil.class.php';
require_once APP.'/AuthPlugin.class.php';
require_once APP.'/MetaPlugin.class.php';
require_once APP.'/DispatchPlugin.class.php';
$front = Zend_Controller_Front::getInstance();
$front->setControllerDirectory(
array(
'default' => APP.'/default/controllers',
'friend' => APP.'/friend/controllers',
'blog' => APP.'/blog/controllers',
'message' => APP.'/message/controllers'
)
);
$front->registerPlugin(new DispatchPlugin());
$front->registerPlugin(new AuthPlugin());
$front->registerPlugin(new MetaPlugin());
$front->setParam('noViewRenderer', TRUE);
$front->dispatch();