Problems with zend-tool reporting that providers are not valid

Posted by Mario on Stack Overflow See other posts from Stack Overflow or by Mario
Published on 2010-05-05T16:53:22Z Indexed on 2010/05/05 16:58 UTC
Read the original article Hit count: 496

Filed under:
|

I have recently setup XAMPP 1.7.3 and ZendFramework 1.10.4 on a new computer and many of the commands that I normally use now fail.

Here are the steps I used to setup and test ZF.

First I added the ZF library folder (C:\xampp\php\ZendFramework-1.10.4\library) to the include path in php.ini.

Then I added the ZF bin folder (C:\xampp\php\ZendFramework-1.10.4\bin) to my Path system variable.

To test that everything is configured correctly I ran the command "zf show version" from the command line. The result is "Zend Framework Version: 1.9.6".

Immediately something appears to be wrong. The file that is downloaded is "ZendFramework-1.10.4.zip" and the reported version is 1.9.6. I have re-downloaded the latest version (1.10.4) and removed old copy. Still the incorrect version number problem persisted.

Having done some research there is a bug in the ZF knowledgebase that version 1.10.3 reports a wrong version number. So that may explain the version number problem.

Moving forward I tried to run some zf-tool commands and certain commands reports that the action or provider is not valid.

Example:

C:\xampp\htdocs>zf create project test
Creating project at C:/xampp/htdocs/test

C:\xampp\htdocs>cd test

C:\xampp\htdocs\test>zf create controller Test
Creating a controller at C:\xampp\htdocs\test/application/controllers/TestController.php
...
Updating project profile 'C:\xampp\htdocs\test/.zfproject.xml'

C:\xampp\htdocs\test>zf create action test Test
Creating an action named test inside controller at C:\xampp\htdocs\test/application/controllers/TestController.php
...
Updating project profile 'C:\xampp\htdocs\test/.zfproject.xml'

C:\xampp\htdocs\test>zf enable layout
                       An Error Has Occurred
 Action 'enable' is not a valid action.
...

C:\xampp\htdocs\test>zf create form Test
                       An Error Has Occurred
 Provider 'form' is not a valid provider.
...

Can any one provide insight into these errors and how to correct them?

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about zend-tool