Преглед изворни кода

Updated Zend_Application QuickStart to set include_path

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@15250 44c647ce-9c0f-0410-b52a-842ac1e357ba
matthew пре 16 година
родитељ
комит
38b52020d7
1 измењених фајлова са 7 додато и 1 уклоњено
  1. 7 1
      documentation/manual/en/module_specs/Zend_Application-QuickStart.xml

+ 7 - 1
documentation/manual/en/module_specs/Zend_Application-QuickStart.xml

@@ -239,6 +239,13 @@ defined('APPLICATION_ENV')
               (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV')
                                          : 'production'));
 
+// Typically, you will also want to add your library/ directory
+// to the include_path, particularly if it contains your ZF install
+set_include_path(implode(PATH_SEPARATOR, array(
+    dirname(dirname(__FILE__)) . '/library',
+    get_include_path(),
+)));
+
 /** Zend_Application */
 require_once 'Zend/Application.php';
 
@@ -322,7 +329,6 @@ RewriteRule ^.*$ index.php [NC,L]
 [production]
 phpSettings.display_startup_errors = 0
 phpSettings.display_errors = 0
-includePaths.library = APPLICATION_PATH "/../library"
 bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
 bootstrap.class = "Bootstrap"
 resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"