add module path

This commit is contained in:
wlx 2013-09-11 03:25:06 +00:00
parent e5cde968b7
commit a1d032b371
1 changed files with 4 additions and 4 deletions

View File

@ -4,9 +4,9 @@ ini_set('display_errors', 1);
date_default_timezone_set('Asia/Shanghai');
// directory setup and class loading
set_include_path('.' . PATH_SEPARATOR . '../include/'
. PATH_SEPARATOR . 'D:/library'
set_include_path('.' . PATH_SEPARATOR . '/var/www/heihedata.org/include/'
. PATH_SEPARATOR . '../application/models'
. PATH_SEPARATOR . '../application/module'
. PATH_SEPARATOR . '../application/default/controllers'
. PATH_SEPARATOR . get_include_path());
//include "Zend/Loader.php";
@ -33,7 +33,7 @@ $registry->set('db',$db);
// setup controller
$frontController = Zend_Controller_Front::getInstance();
$frontController->throwExceptions(false);
$frontController->throwExceptions(true);
//$frontController->setControllerDirectory('../application/controllers');
$frontController->setControllerDirectory(array(
'default' => '../application/default/controllers',
@ -52,4 +52,4 @@ $plugin->setErrorHandlerModule('default')
$frontController->registerPlugin($plugin);
$frontController->dispatch();
$frontController->dispatch();