IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Autres composants PHP Discussion :

[Loader] tuto quickstart erreur bizarre


Sujet :

Autres composants PHP

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre habitué
    Profil pro
    Inscrit en
    Juillet 2008
    Messages
    8
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2008
    Messages : 8
    Par défaut [Loader] tuto quickstart erreur bizarre
    salut,

    j'ai suivi le tuto quickstart zend , mais la je me heurte un message d'erreur .

    Fatal error: Class 'Zend_Layout' not found in C:\wamp\www\quickstart\application\bootstrap.php on line 37


    voici mon bootstrap

    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
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    <?php
    // application/bootstrap.php
    // 
    // Step 1: APPLICATION CONSTANTS - Set the constants to use in this application.
    // These constants are accessible throughout the application, even in ini 
    // files. We optionally set APPLICATION_PATH here in case our entry point 
    // isn't index.php (e.g., if required from our test suite or a script).
    defined('APPLICATION_PATH')
        or define('APPLICATION_PATH', dirname(__FILE__));
     
    defined('APPLICATION_ENVIRONMENT')
        or define('APPLICATION_ENVIRONMENT', 'development');
     
    // Step 2: FRONT CONTROLLER - Get the front controller.
    // The Zend_Front_Controller class implements the Singleton pattern, which is a
    // design pattern used to ensure there is only one instance of
    // Zend_Front_Controller created on each request.
    $frontController = Zend_Controller_Front::getInstance();
     
    // Step 3: CONTROLLER DIRECTORY SETUP - Point the front controller to your action
    // controller directory.
    $frontController->setControllerDirectory(APPLICATION_PATH . '/controllers');
     
    // Step 4: APPLICATION ENVIRONMENT - Set the current environment.
    // Set a variable in the front controller indicating the current environment --
    // commonly one of development, staging, testing, production, but wholly
    // dependent on your organization's and/or site's needs.
    $frontController->setParam('env', APPLICATION_ENVIRONMENT);
    // application/bootstrap.php
    //
    // Add the following code prior to the comment marked "Step 5" in
    // application/bootstrap.php.
    //
    // LAYOUT SETUP - Setup the layout component
    // The Zend_Layout component implements a composite (or two-step-view) pattern
    // With this call we are telling the component where to find the layouts scripts.
    Zend_Layout::startMvc(APPLICATION_PATH . '/layouts/scripts');
     
    // VIEW SETUP - Initialize properties of the view object
    // The Zend_View component is used for rendering views. Here, we grab a "global" 
    // view instance from the layout object, and specify the doctype we wish to 
    // use. In this case, XHTML1 Strict.
    $view = Zend_Layout::getMvcInstance()->getView();
    $view->doctype('XHTML1_STRICT');
     
    // CLEANUP - remove items from global scope
    // This will clear all our local boostrap variables from the global scope of 
    // this script (and any scripts that called bootstrap). This will enforce 
    // object retrieval through the applications's registry.
    unset($view);
     
    // Step 5: CLEANUP - Remove items from global scope.
    // This will clear all our local boostrap variables from the global scope of 
    // this script (and any scripts that called bootstrap).  This will enforce 
    // object retrieval through the applications's registry.
    unset($frontController);
    est ce que sa parle a quelqu'un?

  2. #2
    Membre Expert
    Avatar de Eusebe
    Inscrit en
    Mars 2006
    Messages
    1 992
    Détails du profil
    Informations personnelles :
    Âge : 47

    Informations forums :
    Inscription : Mars 2006
    Messages : 1 992
    Par défaut
    Bonjour,

    Est-ce que tu as bien mis le framework dans le répertoire C:\wamp\www\quickstart\library\Zend ?

    Si oui, as tu bien un fichier C:\wamp\www\quickstart\library\Zend\Layout.php ?

Discussions similaires

  1. [QReport] Erreur bizarre
    Par vali dans le forum Composants VCL
    Réponses: 3
    Dernier message: 01/03/2009, 01h25
  2. Erreur Bizarre 'copier-coller'
    Par papy_tergnier dans le forum C++Builder
    Réponses: 2
    Dernier message: 21/11/2005, 14h35
  3. Erreur bizarre
    Par ydjilali dans le forum Shell et commandes GNU
    Réponses: 4
    Dernier message: 06/10/2005, 14h52
  4. Le kernel erreur bizarre au chargement d'ext3
    Par Invité dans le forum Administration système
    Réponses: 6
    Dernier message: 01/09/2004, 16h54
  5. [appel de fonction]Erreur bizarre
    Par DEC dans le forum ASP
    Réponses: 4
    Dernier message: 10/08/2004, 17h08

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo