Zend FR

Consultez la FAQ sur le ZF avant de poster une question

Vous n'êtes pas identifié.

#1 13-05-2011 16:17:17

masterphp
Banni
Date d'inscription: 19-09-2008
Messages: 110

Fatal error: Class 'Zend_Form' not found in C:\wamp\www\

Bonjour,

j'ai reçu cette erreur :Class 'Zend_Form' not found in C:\wamp\www\

sachant que

Code:

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initAutoload()
        {
            $autoloader = new Zend_Application_Module_Autoloader(array(
                'namespace' => '',
                'basePath'  => dirname(__FILE__),
            ));
            return $autoloader;
        }

        protected function _initDoctype()
        {
            $this->bootstrap('view');
            $view = $this->getResource('view');
            $view->doctype('XHTML1_STRICT');
        }

fichier index.php

Code:

/ Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));

// Define application environment
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . './../../library'),
    get_include_path(),
)));

/** Zend_Application */
require_once 'Zend/Application.php';

// Create application, bootstrap, and run
$application = new Zend_Application(
    APPLICATION_ENV,
    APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap()
            ->run();

C:\wamp\www\library

svp si quelqu'un peut m'iader

Hors ligne

 

#2 16-05-2011 10:36:58

Jerec
Nouveau membre
Date d'inscription: 02-05-2011
Messages: 8

Re: Fatal error: Class 'Zend_Form' not found in C:\wamp\www\

Le problème doit venir du chemin "./../../library" qui ne doit pas pointer vers le bon repertoire. Si le répertoire de library est situé 2 reps plus haut vaut mieux déjà mettre "/../../library", inutile de représenter le repertoire courant

Hors ligne

 

Pied de page des forums

Propulsé par PunBB
© Copyright 2002–2005 Rickard Andersson
Traduction par punbb.fr

Graphisme réalisé par l'agence Rodolphe Eveilleau
Développement par Kitpages