Zend FR

Consultez la FAQ sur le ZF avant de poster une question

Vous n'êtes pas identifié.

#1 16-11-2010 14:22:29

alecour
Membre
Date d'inscription: 04-11-2010
Messages: 10

Afficher terminal dans NETBEANS

Bonjour,

Je crée dans netbeans un projet zendframework de base. Au lieu de passer par les commandes DOS pour passer par exemple "zf create action", est-il possible de le faire directement dans netbeans ?

Cordialement,

A. le Cour

Hors ligne

 

#2 17-11-2010 09:48:13

Ithier
Membre
Date d'inscription: 05-01-2010
Messages: 85

Re: Afficher terminal dans NETBEANS

La dernière version de Netbeans (6.9.1) intègre ZF. Je n'utilise pas cette intégration, mais j'ai vu dans ce Screencast qu'il y avait un menu pour appeler ces commandes.

Hors ligne

 

#3 17-11-2010 12:09:37

alecour
Membre
Date d'inscription: 04-11-2010
Messages: 10

Re: Afficher terminal dans NETBEANS

Merci beaucoup,

J'ai suivi la video, mais après avoir cliquer sur "Register provider", j'ai le message suivant :

Fatal error: Class 'Zend_Tool_Framework_Provider_Abstract' not found in C:\Program Files\NetBeans 6.9.1\php\zend\NetBeansCommandsProvider.php on line 51.

?????

Merci de m'aiguiller

Cordialement

Hors ligne

 

#4 18-11-2010 22:41:35

tdutrion
Administrateur
Lieu: Dijon, Paris, Edinburgh
Date d'inscription: 23-12-2009
Messages: 614
Site web

Re: Afficher terminal dans NETBEANS

As-tu copié ton dossier lib de zend Framework dans le dossier d'include de ton script CLI ?

Exrait du tutoriel d'Akrabat :

Akrabat a écrit:

Zend_Tool for Windows
• Create a new directory in Program Files called ZendFrameworkCli
• Double click the downloaded archive file, ZendFramework-1.10.6-minimal.zip.
• Copy the bin and library folders from within the ZendFramework-1.10.6-minimal.zip folder
window to the C:\Program Files\ZendFrameworkCli folder. This folder should now have two sub
folders: bin and library.
• Add the bin directory to your path:
• Go to the System section of the Control Panel.
• Choose Advanced and then press the Environment Variables button.
• In the “System variables” list, find the Path variable and double click on it.
• Add ;C:\Program Files\ZendFrameworkCli\bin to the end of the input box and press okay.
(The leading semicolon is important!)
• Reboot.

Je n'ai pas regardé le screencast, mais sous Linux quand je suis le tutoriel d'Akrabat ça fonctionne pour moi, pas de raison que ce ne soit pas pareil pour toi !
Pour moi le problème doit vraiment venir de ton installation du CLI, car le message d'erreur concerne un fichier Zend_Tool... Qui se trouve dans les libs...

Hors ligne

 

#5 22-11-2010 10:14:11

alecour
Membre
Date d'inscription: 04-11-2010
Messages: 10

Re: Afficher terminal dans NETBEANS

Merci,

J'ai suivi exactement la méthode et j'ai toujours dans NETBEANS :



Fatal error: Class 'Zend_Tool_Framework_Provider_Abstract' not found in C:\Program Files\NetBeans 6.9.1\php\zend\NetBeansCommandsProvider.php on line 51

Call Stack:
    0.0013     454368   1. {main}() C:\Program Files\ZendFrameworkCli\bin\zf.php:0
    0.0014     454368   2. ZF::main() C:\Program Files\ZendFrameworkCli\bin\zf.php:622
    0.0154    1073912   3. ZF->run() C:\Program Files\ZendFrameworkCli\bin\zf.php:74
    0.0154    1073912   4. ZF->_runTool() C:\Program Files\ZendFrameworkCli\bin\zf.php:117
    0.0155    1075096   5. Zend_Tool_Framework_Client_Abstract->dispatch() C:\Program Files\ZendFrameworkCli\bin\zf.php:599
    0.0155    1075096   6. Zend_Tool_Framework_Client_Abstract->initialize() C:\xampp\php\PEAR\Zend\Tool\Framework\Client\Abstract.php:209
    0.0261    1410776   7. Zend_Tool_Framework_Loader_Abstract->load() C:\xampp\php\PEAR\Zend\Tool\Framework\Client\Abstract.php:118
    3.6500    1908752   8. include_once('C:\Program Files\NetBeans 6.9.1\php\zend\NetBeansCommandsProvider.php') C:\xampp\php\PEAR\Zend\Tool\Framework\Loader\Abstract.php:94

Alors que faire ???

Hors ligne

 

#6 22-11-2010 11:13:54

Ithier
Membre
Date d'inscription: 05-01-2010
Messages: 85

Re: Afficher terminal dans NETBEANS

On a l'impression que le CLI n'arrive pas à charger les classes de ZF.
Est-ce que le chemin vers ta librairie ZF est correcte dans l'option Global include path de Netbeans ? (Tools -> Options ->PHP -> General -> Global Include Path)

Hors ligne

 

#7 24-11-2010 13:51:02

alecour
Membre
Date d'inscription: 04-11-2010
Messages: 10

Re: Afficher terminal dans NETBEANS

Merci beaucoup, cela semble marcher maintenant.

Cordialement,

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