"Fixes #4285, Importing a vendor in bootstrap.php fails to work.

If you want to use custom paths that are set in app/bootstrap.php you must first use the following code to set these paths before calling App::import() but after the $*Paths variables;
 * Configure::buildPaths(compact('modelPaths', 'viewPaths', 'controllerPaths', 'helperPaths', 'componentPaths', 'behaviorPaths', 'pluginPaths', 'vendorPaths'));
 * You would only use the *Paths in the above code that you have set."

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6525 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2008-03-08 22:50:30 +00:00
parent dfe2ead19e
commit da19393614
2 changed files with 26 additions and 11 deletions

View file

@ -44,11 +44,10 @@ if (!defined('PHP5')) {
require LIBS . 'cache.php';
Configure::getInstance();
require LIBS . 'session.php';
require LIBS . 'security.php';
require LIBS . 'string.php';
$url = null;
require CAKE . 'dispatcher.php';
App::import('Core', 'Session');
App::import('Core', 'Security');
App::import('Core', 'String');
App::import('Core', 'Dispatcher');
?>