zend-tool报告存在提供商无效的问题 [英] Problems with zend-tool reporting that providers are not valid
问题描述
我最近在新计算机上设置了XAMPP 1.7.3和ZendFramework 1.10.4,现在我通常使用的许多命令都失败了.
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.
这是我用来设置和测试ZF的步骤.
Here are the steps I used to setup and test ZF.
首先,我将ZF库文件夹(C:\ xampp \ php \ ZendFramework-1.10.4 \ library)添加到php.ini中的include路径.
First I added the ZF library folder (C:\xampp\php\ZendFramework-1.10.4\library) to the include path in php.ini.
然后我将ZF bin文件夹(C:\ xampp \ php \ ZendFramework-1.10.4 \ bin)添加到我的Path系统变量中.
Then I added the ZF bin folder (C:\xampp\php\ZendFramework-1.10.4\bin) to my Path system variable.
要测试所有配置是否正确,我从命令行运行了"zf show version"命令.结果是"Zend Framework版本:1.9.6".
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".
立即出现问题.下载的文件是"ZendFramework-1.10.4.zip",报告的版本是1.9.6.我已经重新下载了最新版本(1.10.4),并删除了旧副本.仍然存在错误的版本号问题.
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.
进行了一些研究后,ZF知识库中存在一个错误,即1.10.3版报告了错误的版本号.这样可以解释版本号问题.
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.
前进,我尝试运行一些zf-tool命令,某些命令报告该操作或提供程序无效.
Moving forward I tried to run some zf-tool commands and certain commands reports that the action or provider is not valid.
示例:
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?
推荐答案
使用xampp的简单方法,只需转到路径"xampp \ php \ PEAR",将旧的Zend目录替换为包含的所有文件.新的一个zend 1.10 ...目录和您的麻烦丢失了:)
the simple way if you are using xampp, just go to the path "xampp\php\PEAR" an replace the older Zend directory with all included files by a new one zend 1.10... dir and your porblems are lost :)
这篇关于zend-tool报告存在提供商无效的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!