Consultez la FAQ sur le ZF avant de poster une question
Vous n'êtes pas identifié.
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
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
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
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
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
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
Merci beaucoup, cela semble marcher maintenant.
Cordialement,
Hors ligne