简体   繁体   English

zend framwork 2:如何在特定操作中在特定控制器中创建操作

[英]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.

相关问题 Zend:使用命令行在特定模块中的特定控制器中创建操作 - Zend: Create action in a specific controller in specific module with command line Zend Framework 2自定义ViewHelper,用于控制器中的特定操作 - Zend Framework 2 Custom ViewHelper for specific action in a controller 如何为特定控制器操作创建异常事件侦听器,使用其原始参数重定向到另一个操作? - How to create exception event listener for a specific controller action, to redirect to another action using its original argument? 如何在yii中为特定控制器和动作添加JavaScript - How to add JavaScript for a specific controller and action in yii 如何在laravel中调用特定的控制器动作 - how to invoke a specific controller action in laravel 如何使用Ajax调用特定的控制器动作? - How to use Ajax call to a specific controller action? 如何在Zend Framework 2中创建通用模块/控制器/动作路由? - How to create a generic module/controller/action route in Zend Framework 2? 在Zend Framework中的模块控制器中创建操作 - Create action in module's controller in Zend Framework Zend Framework 1.12.16将用户重定向到特定操作 - Zend Framework 1.12.16 redirect user to specific action 控制器操作在zend中不起作用 - controller Action not working in zend
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM