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

Zend Framework PHP Discussion :

Fatal error : class not found


Sujet :

Zend Framework PHP

  1. #41
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 727
    Points
    10 727
    Par défaut
    Citation Envoyé par 1-Dicible Voir le message
    Même avec une table classique, il me renvoie la même erreur ... je trouve sa très bizarre
    et dans la table classique t'as une clé primaire ?

  2. #42
    Nouveau Candidat au Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mai 2011
    Messages
    27
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : Administration - Collectivité locale

    Informations forums :
    Inscription : Mai 2011
    Messages : 27
    Points : 1
    Points
    1
    Par défaut
    Citation Envoyé par stealth35 Voir le message
    et dans la table classique t'as une clé primaire ?
    Oui j'ai bien une clé primaire dans cette table, mais rien n'y fait.

  3. #43
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 727
    Points
    10 727
    Par défaut
    Citation Envoyé par 1-Dicible Voir le message
    Oui j'ai bien une clé primaire dans cette table, mais rien n'y fait.
    mince, montre l'erreur avec le stack complet

  4. #44
    Nouveau Candidat au Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mai 2011
    Messages
    27
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : Administration - Collectivité locale

    Informations forums :
    Inscription : Mai 2011
    Messages : 27
    Points : 1
    Points
    1
    Par défaut
    Citation Envoyé par stealth35 Voir le message
    mince, montre l'erreur avec le stack complet
    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
    An error occurred
    Application error
    Exception information:
    Message: Primary key column(s) (REQUEST_ID) are not columns in this table () 
     
    Stack trace:
    #0 C:\wamp\www\Zend1.11.5\library\Zend\Db\Table\Abstract.php(980): Zend_Db_Table_Abstract->_setupPrimaryKey()
    #1 C:\wamp\www\Zend1.11.5\library\Zend\Db\Table\Select.php(100): Zend_Db_Table_Abstract->info()
    #2 C:\wamp\www\Zend1.11.5\library\Zend\Db\Table\Select.php(78): Zend_Db_Table_Select->setTable(Object(Application_Model_DbTable_SdRequest))
    #3 C:\wamp\www\Zend1.11.5\library\Zend\Db\Table\Abstract.php(1016): Zend_Db_Table_Select->__construct(Object(Application_Model_DbTable_SdRequest))
    #4 C:\wamp\www\Zend1.11.5\library\Zend\Db\Table\Abstract.php(1324): Zend_Db_Table_Abstract->select()
    #5 C:\wamp\www\Zend1.11.5\application\controllers\SdRequestController.php(14): Zend_Db_Table_Abstract->fetchAll()
    #6 C:\wamp\www\Zend1.11.5\library\Zend\Controller\Action.php(513): SdRequestController->indexAction()
    #7 C:\wamp\www\Zend1.11.5\library\Zend\Controller\Dispatcher\Standard.php(295): Zend_Controller_Action->dispatch('indexAction')
    #8 C:\wamp\www\Zend1.11.5\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
    #9 C:\wamp\www\Zend1.11.5\library\Zend\Application\Bootstrap\Bootstrap.php(97): Zend_Controller_Front->dispatch()
    #10 C:\wamp\www\Zend1.11.5\library\Zend\Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
    #11 C:\wamp\www\Zend1.11.5\public\index.php(26): Zend_Application->run()
    #12 {main}  
    Request Parameters:
    array (
      'controller' => 'SdRequest',
      'action' => 'index',
      'module' => 'default',
    )

  5. #45
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 727
    Points
    10 727
    Par défaut
    dans ton indexAction fait

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    var_dump($oIncident->info());
    $this->view->VUE_INCIDENT = $oIncident->fetchAll();
    EDIT: ou direct un

  6. #46
    Nouveau Candidat au Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mai 2011
    Messages
    27
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : Administration - Collectivité locale

    Informations forums :
    Inscription : Mai 2011
    Messages : 27
    Points : 1
    Points
    1
    Par défaut
    Citation Envoyé par stealth35 Voir le message
    dans ton indexAction fait

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    var_dump($oIncident->info());
    $this->view->VUE_INCIDENT = $oIncident->fetchAll();
    EDIT: ou direct un
    Cela me renvoie deux erreurs :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    Warning: Invalid argument supplied for foreach() in C:\wamp\www\Zend1.11.5\application\views\scripts\sd-request\index.phtml on line 3
     
     
    Notice: Undefined variable: oIncident in C:\wamp\www\Zend1.11.5\application\controllers\SdRequestController.php on line 13
    NULL

  7. #47
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 727
    Points
    10 727
    Par défaut
    remontre ton indexAction, si tu la changé entre temps c'est normale que y'ai une erreur

  8. #48
    Nouveau Candidat au Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mai 2011
    Messages
    27
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : Administration - Collectivité locale

    Informations forums :
    Inscription : Mai 2011
    Messages : 27
    Points : 1
    Points
    1
    Par défaut
    Voila mon indexAction, je ne l'ai pas changer juste rajouter ce que tu ma dit.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    public function indexAction()
        {
            $oIncident = new Application_Model_DbTable_VueIncident();
            $this->view->entries = $oIncident->fetchAll();
            var_dump($oIncident);
        }

  9. #49
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 727
    Points
    10 727
    Par défaut
    mais pourquoi avoir commenté les autres lignes ???
    tu vois bien que $oIncident n'existe plus

  10. #50
    Nouveau Candidat au Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mai 2011
    Messages
    27
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : Administration - Collectivité locale

    Informations forums :
    Inscription : Mai 2011
    Messages : 27
    Points : 1
    Points
    1
    Par défaut
    Désolé erreur de frappe mais toujours la même erreur.

  11. #51
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 727
    Points
    10 727
    Par défaut
    t'es sur ? fait un var_dump de ton model,

    montre tout ton SdRequestController.php

  12. #52
    Nouveau Candidat au Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mai 2011
    Messages
    27
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : Administration - Collectivité locale

    Informations forums :
    Inscription : Mai 2011
    Messages : 27
    Points : 1
    Points
    1
    Par défaut
    Voila mon controller SdRequestController.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
    16
    17
    18
    19
    <?php
     
    class SdRequestController extends Zend_Controller_Action
    {
     
        public function init()
        {
            /* Initialize action controller here */
        }
     
        public function indexAction()
        {
            $oIncident = new Application_Model_DbTable_SdRequest();
            $this->view->entries = $oIncident->fetchAll();
            var_dump($oIncident);
        }
     
     
    }

Discussions similaires

  1. [ZF 1.11] Problème d'AutoLoad entre environnements - Fatal error: Class not found in
    Par eaglesnipe dans le forum Zend Framework
    Réponses: 4
    Dernier message: 22/03/2012, 09h15
  2. [2.x] Fatal error: Class not found
    Par sybil dans le forum Symfony
    Réponses: 8
    Dernier message: 04/04/2011, 10h16
  3. Fatal error class not found.
    Par billyrose dans le forum Langage
    Réponses: 4
    Dernier message: 23/04/2009, 17h22
  4. Eclipse 3.4.0: type error class not found : XrayLogger
    Par Ouaich75 dans le forum Eclipse Java
    Réponses: 1
    Dernier message: 13/10/2008, 15h31
  5. [MySQL] Fatal error: Class 'mysqli' not found in site
    Par rashid120 dans le forum PHP & Base de données
    Réponses: 1
    Dernier message: 29/07/2008, 08h42

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