Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- zendproject|
- |-> application
- |-> models
- |-> modules
- |-> person
- |->controllers
- |-> PersonController.php
- resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
- resources.modules[] = ""
- class Person_Bootstrap extends Zend_Application_Module_Bootstrap {
- }
- resources.modules[] =
- $frontController = Zend_Controller_Front::getInstance();
- $frontController->throwExceptions(true);
- $frontController->returnResponse(true);
- $frontController->setControllerDirectory(
- array(
- 'default' => '/path/to/application/controllers',
- 'person' => 'path/to/application/person/controllers'
- )
- );
- $response = $frontController->dispatch();
- $response->sendResponse();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement