08-26-2008, 06:14 PM
|
#5 (permalink)
|
|
The Wanderer
Join Date: Aug 2008
Posts: 3
Thanks: 0
|
It looks like you're requesting this as a windows user?
ini_set('include_path', ini_get('include_path') . ':../library');
Setting ini correctly can be a pain. I never knew how to get it correct until i did one thing and I just use that now always.
Assuming that this script is in your bootstrap.... ( you can remove the extra array indexes that dont apply to you. you should just change 'lib' to 'library'.
This works both unix and windows.
/**
* Enter description here...
*
*/
define('DS', DIRECTORY_SEPARATOR);
define('PS', PATH_SEPARATOR);
define('BP', dirname(dirname(__FILE__)));
/**
* Enter description here...
*
*/
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors', 1);
/**
* Enter description here...
*
*/
$paths[] = BP . DS . 'app' . DS . 'code' . DS . 'modules';
$paths[] = BP . DS . 'lib' . DS . 'phpunit';
$paths[] = BP . DS . 'lib' . DS . 'incubator';
$paths[] = BP . DS . 'lib';
set_include_path(implode(PS, $paths) . PS . get_include_path());
require_once 'Zend'.DS.'Loader.php';
// register autoload
Zend_Loader::registerAutoload();
It's always important to note that this is FIFO, so for instance, my incubator inclusion gets applied previous to the standard inclusion. If you have any problems with this, let me know. however, that should work out of the box if applied correctly.
|
|
|
|