title: Zend Framework problem with autoloader
body: <p><strong>it's all in index.php</strong></p>
  
  <pre><code>/* Define site root */
  defined('DOCUMENT_ROOT') ? null : define('DOCUMENT_ROOT',realpath(dirname(__FILE__)));
  defined('SITE_ROOT') ? null : define('SITE_ROOT',realpath(dirname(DOCUMENT_ROOT.'../')));
  
  
  // Define path to application directory
  defined('APPLICATION_PATH')
      || define('APPLICATION_PATH', SITE_ROOT . '/application');
  
  
  $includePath[] = '.';
  $includePath[] = SITE_ROOT . '/library';
  $includePath[] = get_include_path();
  $includePath = implode(PATH_SEPARATOR,$includePath);
  set_include_path($includePath);
  
  require_once 'Zend/Loader/Autoloader.php';
  Zend_Loader_Autoloader::getInstance();
  
   /* Adding action helpers path */
   Zend_Controller_Action_HelperBroker::addPath(APPLICATION_PATH . '/controllers/helpers','Helper');
  
   $application-&gt;bootstrap()
      -&gt;run();
  </code></pre>
  
  <p>Getting those error and a lot more with wrong paths to bundled ZF helpers, what's wrong?</p>
  
  <p>/* Setting decorators path and prefix for form and it's elements <em>/
    $form->addElementPrefixPath('Form', SITE_ROOT . '/library/form/decorators', 'decorator'); // prefix, path, type
    /</em> Setting additional validators */
    $form->addElementPrefixPath('Form', SITE_ROOT . '/library/form/validators', 'validate'); // prefi, path, type</p>
  
  <pre><code> [2] fopen(/var/www/vhosts/blabla.com/httpdocs/application/controllers/helpers/ViewRenderer.php) [&lt;a href='function.fopen'&gt;function.fopen&lt;/a&gt;]: failed to open stream: No such file or directory 
    in file: /var/www/vhosts/blabla.com/httpdocs/library/Zend/Loader.php 
    on line: 165 
    [2] fopen(/var/www/vhosts/blabla.com/httpdocs/library/form/validators/NotEmpty.php) [&lt;a href='function.fopen'&gt;function.fopen&lt;/a&gt;]: failed to open stream: No such file or directory 
    in file: /var/www/vhosts/blabla.com/httpdocs/library/Zend/Loader.php 
    on line: 165 
    [2] fopen(/var/www/vhosts/blabla.com/httpdocs/library/form/validators/InArray.php) [&lt;a href='function.fopen'&gt;function.fopen&lt;/a&gt;]: failed to open stream: No such file or directory 
    in file: /var/www/vhosts/blabla.com/httpdocs/library/Zend/Loader.php 
    on line: 165 
    [2] fopen(/var/www/vhosts/blabla.com/httpdocs/library/form/validators/NotEmpty.php) [&lt;a href='function.fopen'&gt;function.fopen&lt;/a&gt;]: failed to open stream: No such file or directory 
    in file: /var/www/vhosts/blabla.com/httpdocs/library/Zend/Loader.php 
    on line: 165 
    [2] fopen(/var/www/vhosts/blabla.com/httpdocs/library/form/validators/InArray.php) [&lt;a href='function.fopen'&gt;function.fopen&lt;/a&gt;]: failed to open stream: No such file or directory 
    in file: /var/www/vhosts/blabla.com/httpdocs/library/Zend/Loader.php 
    on line: 165 
    [2] fopen(/var/www/vhosts/blabla.com/httpdocs/library/form/validators/InArray.php) [&lt;a href='function.fopen'&gt;function.fopen&lt;/a&gt;]: failed to open stream: No such file or directory 
    in file: /var/www/vhosts/blabla.com/httpdocs/library/Zend/Loader.php 
    on line: 165 
    [2] fopen(/var/www/vhosts/blabla.com/httpdocs/library/form/validators/NotEmpty.php) [&lt;a href='function.fopen'&gt;function.fopen&lt;/a&gt;]: failed to open stream: No such file or directory 
    in file: /var/www/vhosts/blabla.com/httpdocs/library/Zend/Loader.php 
    on line: 165 
    [2] fopen(/var/www/vhosts/blabla.com/httpdocs/library/form/validators/NotEmpty.php) [&lt;a href='function.fopen'&gt;function.fopen&lt;/a&gt;]: failed to open stream: No such file or directory 
    in file: /var/www/vhosts/blabla.com/httpdocs/library/Zend/Loader.php 
    on line: 165 
    [2] fopen(/var/www/vhosts/blabla.com/httpdocs/library/form/validators/InArray.php) [&lt;a href='function.fopen'&gt;function.fopen&lt;/a&gt;]: failed to open stream: No such file or directory 
    in file: /var/www/vhosts/blabla.com/httpdocs/library/Zend/Loader.php 
    on line: 165 
    [2] fopen(/var/www/vhosts/blabla.com/httpdocs/library/form/validators/NotEmpty.php) [&lt;a href='function.fopen'&gt;function.fopen&lt;/a&gt;]: failed to open stream: No such file or directory 
    in file: /var/www/vhosts/blabla.com/httpdocs/library/Zend/Loader.php 
    on line: 165 
    [2] fopen(/var/www/vhosts/blabla.com/httpdocs/library/form/validators/NotEmpty.php) [&lt;a href='function.fopen'&gt;function.fopen&lt;/a&gt;]: failed to open stream: No such file or directory 
    in file: /var/www/vhosts/blabla.com/httpdocs/library/Zend/Loader.php 
    on line: 165 
  </code></pre>
  
  <p>Bundled with ZF validators are located here:</p>
  
  <p>library/Zend/Validate/InArray.php for example</p>
  
  <p>What's wrong with autoloader then?</p>