Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It sounds like you are confusing two notions: the system path and the include path.</p> <p>The system path is an operating system concept. When you ask the OS to execute a command, the system path is a list of places to look for the executable.</p> <p>In contrast, the include path is a PHP concept that tells PHP a list of folders in which to look for files invoked by PHP <code>include/require</code> statements.</p> <p>Any path that you find in "Computer > Properties" is almost certainly the OS-level system path. What you need to do is to make sure the Zend folder on the PHP include path, either by moving the Zend folder or by modifying PHP's include path to include a point to the Zend folder.</p> <p>In a typical ZF app, the include folder is set in <code>index.php</code> (the front controller). So, the only explanation for not finding Zend_Form is that the autoloader is not being instantiated. </p> <p>If you are using <code>Zend_Application</code>, this happens automatically. However, it seems like you are bypassing <code>public/index.php</code> and the whole <code>Zend_Application</code> instantiation by trying to directly "access" a file called <code>form.php</code> directly. If this file contains only the definition of your form (extending <code>Zend_Form</code>), then the absence of autoloading could easily explain the error message you are getting.</p> <p>I'd try instantiating the form in a controller action, by which time in the request processing cycle, the autoloading is probably already in place. </p> <p>[At that point, given the file locations you cite, we might run into a resource-loader issue, but that's a somewhat different issue that can be handled by instantiating a <code>Zend_Application_Module_Autoloader</code> in your <code>Bootstrap</code>.]</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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