Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Okay, you're using the <em>module</em> autoloader in your bootstrap. It's designed to be used in module bootstraps, as it searches just one directory tree (usually a specific directory in application/modules), rather than using the include path. It can be used in the main bootstrap as an autoloader for the default module, which is why your class worked when you put it in application/models.</p> <p>I think you want to switch to using the standard autoloader.</p> <p>I'm assuming in your bootstrap class you currently have something like this:</p> <pre><code>protected function _initAutoloader() { $autoloader = new Zend_Application_Module_Autoloader(array( 'namespace' =&gt; '', 'basePath' =&gt; dirname(__FILE__), )); return $autoloader; } </code></pre> <p>change it to this:</p> <pre><code>protected function _initAutoloader() { $autoloader = Zend_Loader_Autoloader::getInstance(); $autoloader-&gt;setFallbackAutoloader(true); return $autoloader; } </code></pre> <p>this sets up the autoloader (which will also by default setup autoloading for the Zend Framework classes) and then tells it to use this autoloader for any namespace not matched by another (because your class has no namespace). With this approach you can drop any class using the PEAR naming conventions into your library directory and use it in your code.</p> <p>Alternatively you could do:</p> <pre><code>protected function _initAutoloader() { $autoloader = Zend_Loader_Autoloader::getInstance(); $autoloader-&gt;registerNamespace('Model'); return $autoloader; } </code></pre> <p>which sets up the autoloader and then tells it to use this autoloader for the namespace 'Model', which will match your Model_Login class.</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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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