[英]zend framwork 2: How to create action in specific controller in specific action
I am using zftool to create action using zendframework version 2 but i am getting error. 我使用zftool使用zendframework版本2创建操作但我收到错误。
here is my command : 这是我的命令:
C:\>php zftool.phar create action list User user d:\xampp\htdocs\zf2dummy
but i am getting following error: 但我得到以下错误:
Reason for failure: Invalid arguments or no arguments provided
My module name is : user My controller name is : User and my action name is : list 我的模块名称是:user我的控制器名称是:User和我的操作名称是:list
where i am going wrong.help please. 哪里出错了。请帮忙。 thanks in advance. 提前致谢。
have you tried to change the name of the method? 您是否尝试更改方法的名称? list
is a PHP predefined function and I have similar problem with CodeIgniter, where I couldn't define a method named this way. list
是一个PHP预定义函数,我和CodeIgniter有类似的问题,我无法定义这样命名的方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.