Details
-
Type:
Docs: Problem
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.3
-
Fix Version/s: 1.9.2
-
Component/s: Zend_Application
-
Labels:None
-
Language:English
-
Tags:
Description
The code sample for "scripts/load.sqlite.php" requires:
set_include_path(implode(PATH_SEPARATOR, array(
realpath(dirname(__FILE__) . '/../library'),
get_include_path(),
)));
... before the "require_once 'Zend/Application.php';" statement (line 20) in order to work (like "public/index.php" does)
http://framework.zend.com/docs/quickstart/create-a-model-and-database-table
thanks for all the hard work!
This issue has also been reported in the first part of issue #7401. The solution given there uses:
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../library'),
get_include_path(),
)));
This seems a better solution than the one given in this ticket, as it makes use of the existing APPLICATION_PATH constant and doesn't compute its value a second time.