Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Alright, I got it! The Zend Framework with Magento isn't <em>really</em> broken... but they are doing things a little different than normal.:</p> <p>1) It <em>is</em> normal to comment out the require_once() statements in Zend when you enable "lazy loading" with the Zend Loader. It's a performance thing:<br> <a href="http://framework.zend.com/manual/en/performance.classloading.html" rel="nofollow">http://framework.zend.com/manual/en/performance.classloading.html</a></p> <p>2) It is <em>not</em> normal to comment them out in the Application.php and Loader.php classes, however:</p> <blockquote> <p>[keep the] require_once() calls within Zend_Application and Zend_Loader_Autoloader, as these classes will fail without them.</p> </blockquote> <p>So, the answer is to just add the 3 missing require_once() statements yourself when enabling Loader.php. Here is my new code that works (in my apps index.php):</p> <pre><code>&lt;?php define('DS', DIRECTORY_SEPARATOR); defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application')); defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production')); set_include_path(implode(PATH_SEPARATOR, array( BASE_PATH . DS . 'products' . DS . 'lib', '.', ))); require_once 'Zend/Loader.php'; require_once 'Zend/Loader/Autoloader.php'; Zend_Loader_Autoloader::getInstance(); require_once APPLICATION_PATH.'/Bootstrap.php'; $application = new Zend_Application( APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini' ); $application-&gt;bootstrap() -&gt;run(); </code></pre> <p>Now I am off and running! The problem was that I just didn't really know how the auto-loader was set up. I hope this helps someone!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload