Précédent   Forum des professionnels en informatique > PHP > Outils > Zend > Zend Framework
Zend Framework Forum d'entraide sur la programmation PHP avec Zend Framework. Avant de poster -> FAQ ZF, Cours ZF
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 20/02/2008, 11h40   #1
Invité de passage
 
Inscription : juin 2005
Messages : 11
Détails du profil
Informations forums :
Inscription : juin 2005
Messages : 11
Points : 4
Points : 4
Par défaut Erreur avec l'atelier Introduction au templating avec Zend_Layout

J'ai suivi cet atelier très intéressant de Julien Pauli, mais j'ai une erreur au niveau de l'actionStack
le code suivant $actionStack->actionStack('footer', 'index');
me lance l'erreur suivante:
Fatal error: Call to undefined method Zend_Controller_Action_Helper_ActionStack::actionStack() in E:\wamp\www\zfTestLayout\index.php on line 46

J'ai cherché dans pas mal de forum, mais j'ai rien trouvé ... Si quelqu'un pouvait m'aider, je le remercie d'avance.

Pour info, j'utilise Zend Framework 1.5.0 Preview Release 2008-01-28

Epok
Epok75 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/02/2008, 23h08   #2
Membre actif
 
Avatar de nicolas.pied
 
Inscription : janvier 2005
Messages : 244
Détails du profil
Informations personnelles :
Âge : 29

Informations forums :
Inscription : janvier 2005
Messages : 244
Points : 161
Points : 161
Salut,

En fait, il faut que tu remplaces :
Code :
1
2
3
4
 
$actionStack = Zend_Controller_Action_HelperBroker::getStaticHelper('actionStack');
$actionStack->actionStack('footer', 'index');
$actionStack->actionStack('header', 'index');
Par :

Code :
1
2
3
$actionStack = Zend_Controller_Action_HelperBroker::getStaticHelper('actionStack');
$actionStack->actionToStack('footer', 'index');
$actionStack->actionToStack('header', 'index');
dans le bootstrap (index.php) et tout devrais ensuite fonctionner.
__________________
Un peu d'humour : jokes.guppix.fr
Articles et actualités informatiques : Kbups.org
Articles sur le développement informatique : nicolaspied.developpez.com
nicolas.pied est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/02/2008, 16h52   #3
Invité de passage
 
Inscription : juin 2005
Messages : 11
Détails du profil
Informations forums :
Inscription : juin 2005
Messages : 11
Points : 4
Points : 4
Merci pour ta réponse, tout fonctionne nickel.
Il faudrait peut-être mettre a jour la page du tutoriel.

Epok
Epok75 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 29/02/2008, 14h42   #4
Rédacteur
 
Avatar de doctorrock
 
Homme Julien Pauli
Architecte de système d'information
Inscription : mai 2006
Messages : 597
Détails du profil
Informations personnelles :
Nom : Homme Julien Pauli
Âge : 29
Localisation : France, Paris (Île de France)

Informations professionnelles :
Activité : Architecte de système d'information
Secteur : High Tech - Produits et services télécom et Internet

Informations forums :
Inscription : mai 2006
Messages : 597
Points : 5 015
Points : 5 015
Oui une petite erreur, excusez moi ^^
__________________
.: Expert contributeur certifié PHP/ZF :.
Mes articles - Twitter - GitHub
doctorrock est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 17/09/2008, 12h22   #5
Invité de passage
 
Inscription : janvier 2005
Messages : 8
Détails du profil
Informations forums :
Inscription : janvier 2005
Messages : 8
Points : 1
Points : 1
Bonjour,

En suivant le tuto, je rencontre cette erreur :

Fatal error: Uncaught exception 'Zend_Controller_Action_Exception' with message 'Request object not set yet' in /var/www/zend/library/Zend/Controller/Action/Helper/ActionStack.php:113

Si quelqu'un peut me dire où se situe mon problème ??

Merci d'avance.

ZF 1.6
souk est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 01/08/2009, 16h16   #6
Membre régulier
 
Avatar de guiyomh
 
Inscription : avril 2007
Messages : 320
Détails du profil
Informations forums :
Inscription : avril 2007
Messages : 320
Points : 99
Points : 99
j'ai le même problème que toi ! as tu réussit à le corriger ?
Citation:
'Uncaught exception 'Zend_Controller_Action_Exception' with message 'Request object not set yet'
__________________
---
"Rien n'est impossible"
http://journaldeguillaume.blogspot.com
guiyomh est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 03h20.


 
 
 
 
Partenaires

Hébergement Web