识别控制器我创建了一个模块和控制器的使用:Zend的工具来创建操作不会在模块
$ zf create module api
$ zf create controller auth index-action-included=1 api
这工作得很好,我也得到了index动作时,我要求http://localhost/api/auth
。
我想创建一个新的动作称为验证:
$ zf create action validate auth view-included=1 api
但我得到告诉:
An Error Has Occurred
Controller auth was not found.
编辑:
我已经直接添加动作控制器,并创建了视图文件 - 但我希望我不会错过任何我需要在这里命令行应该创建的东西。
我建议在项目文件夹中对.zfproject.xml文件进行双重检查,并确保没有错字错误。 – xeranas 2011-07-20 09:11:59