Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I assume you're using <code>Zend_Application</code>, which automatically sets up the PHP environment, autoloading and bootstrapping. It's very handy. Sadly, setting up <code>Zend_Autoloader</code> is hard coded into the constructor, and I can't see any way to override it:</p> <pre><code>public function __construct($environment, $options = null) { $this-&gt;_environment = (string) $environment; require_once 'Zend/Loader/Autoloader.php'; $this-&gt;_autoloader = Zend_Loader_Autoloader::getInstance(); //snip } </code></pre> <p>My first suggestion would be to find a way to make <code>Zend_Autoloader</code> and your other autoloader work in harmony. I've been using <code>Zend_Autoloader</code> with the new <code>Doctrine::IsolatedClassLoader</code> with no problems. The advice about being explicit about autoloader namespaces or using <code>pushAutoloader()</code> is valid, and should work.</p> <p>However, if that is not an option, you should probably abandon using <code>Zend_Application</code>, and handle environment setup and bootstrapping yourself. While an inconvenience, it's shouldn't be too difficult. Most ZF tutorials prior to version 1.8 (which is when <code>Zend_Application</code> was introduced) provided examples. </p> <p>Here's a (now outdated) set of slides detailing some of this:</p> <p><a href="http://www.slideshare.net/weierophinney/getting-started-with-zend-framework-presentation" rel="nofollow noreferrer">Getting Started With Zend Framework</a> for v1.6 </p>
 

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