Browse Source

Composer autoload is not useful unless stripping require_once calls from the zf library

Set the include path directly. The application only needs the zf library
on the include path.
Gerard Roche 11 years ago
parent
commit
27fd4165d1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      php-zend-framework1/public/index.php

+ 1 - 1
php-zend-framework1/public/index.php

@@ -8,7 +8,7 @@ defined('APPLICATION_PATH')
 defined('APPLICATION_ENV')
     || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
 
-require dirname(__DIR__) . '/vendor/autoload.php';
+set_include_path(realpath(dirname(__FILE__) . '/../vendor/zendframework/zendframework1/library'));
 
 /** Zend_Application */
 require_once 'Zend/Application.php';