Bonjour
je suis entrain de réaliser une application à l'aide de symfony
mon projet est sous la racine www/annonce
pour le moteur de recherche j'ai installé zend(bibliothèque Zend Lucene) dans le meme dossier annonce
et j'ai ajouté ce code dans la fichier config/ProjectConfiguration.class.php:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 
static protected $zendLoaded = false;
 
  static public function registerZend()
  {
    if (self::$zendLoaded)
    {
      return;
    }
 
    set_include_path(sfConfig::get('sf_lib_dir').'/annonce'.PATH_SEPARATOR.get_include_path());
    require_once sfConfig::get('sf_lib_dir').'/Loader.php';
    Zend_Loader_Autoloader::getInstance();
    self::$zendLoaded = true;
  }
Si j'ajoute un entré j'obtient cet erreur:
Warning: require_once(C:\wamp\www\annonce\lib/Loader.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\annonce\config\ProjectConfiguration.class.php on line 20

Fatal error: require_once() [function.require]: Failed opening required 'C:\wamp\www\annonce\lib/Loader.php' (include_path='C:\wamp\www\annonce\lib/annonce;.;C:\php5\pear') in C:\wamp\www\annonce\config\ProjectConfiguration.class.php on line 20