Anonymous     Text only     24 Jun 2011    
 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
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initAutoload() {
$resourceLoader = new Zend_Loader_Autoloader_Resource(array (
'basePath' => APPLICATION_PATH,
'namespace' => ''
));
$resourceLoader->addResourceType('managers', 'managers/', 'Manager');
}
protected function _initRouter() {
$frontController = Zend_Controller_Front::getInstance();
$router = $frontController->getRouter();
$router->addRoute('showUser',
new Zend_Controller_Router_Route('userUsers',
array ('controller'=>'user', 'action'=>'user'))
);
$router->addRoute('viewuser',
new Zend_Controller_Router_Route('userIndex',
array ('controller'=>'index', 'action'=>'index'))
);
}
}