Zend Framework 2 ZF 工具创建控制器
Zend Framework 2 ZF tool creating controller
当我尝试在我的 Zend Framework 2.4 应用程序中创建一个新控制器时,使用以下 ZF 工具命令:
zf create controller Author index-action-included=1 Author C:\wamp\www\ZendApp
我收到以下错误:
Reason for failure: Invalid arguments or no arguments provided
但是当我删除 index-action-included=1
时,ZF Tool 创建了一个没有任何问题的控制器。
我错过了什么?
如果要创建索引操作,默认创建。但是,如果您不想创建它,我认为它应该是这样的:
zf create controller Author Author C:\wamp\www\ZendApp 0
当我尝试在我的 Zend Framework 2.4 应用程序中创建一个新控制器时,使用以下 ZF 工具命令:
zf create controller Author index-action-included=1 Author C:\wamp\www\ZendApp
我收到以下错误:
Reason for failure: Invalid arguments or no arguments provided
但是当我删除 index-action-included=1
时,ZF Tool 创建了一个没有任何问题的控制器。
我错过了什么?
如果要创建索引操作,默认创建。但是,如果您不想创建它,我认为它应该是这样的:
zf create controller Author Author C:\wamp\www\ZendApp 0