添加绝对路径

This commit is contained in:
wlx 2012-09-18 06:32:27 +00:00
parent 1669857d02
commit ae9761baa0
1 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,8 @@ date_default_timezone_set('Asia/Shanghai');
// directory setup and class loading
set_include_path('.' . PATH_SEPARATOR . '../include/'
. PATH_SEPARATOR . '../application/models'
. PATH_SEPARATOR . '../application/models'
. PATH_SEPARATOR . '/var/www/xining.westgis.ac.cn/include/'
. PATH_SEPARATOR . '../application/default/controllers'
. PATH_SEPARATOR . get_include_path());
//include "Zend/Loader.php";
@ -32,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',