Zend_Tool remove controller/action

戏子无情 提交于 2019-12-06 03:29:10

问题


I made a controller with Zend_Tool, but now I want to delete the controller. I know i can just delete the file, but I was wondering if there was a way to do this with Zend_Tool, so i don't need to edit the .zfproject.xml myself.

Thanks!


回答1:


You have to manually delete it.

This functionality is slated for 1.10. It was left out of the 1.8 and 1.9 release for a couple of good reasons. Since deleting is a pretty irreversible action, and sometimes is also a recursive action- we wanted to ensure that the console/cli interface at least had the capability to ask the user if deleting is OK, in other words confirming the decision to delete something. This way, people will not accidentally delete things they will not be able to recover.

-ralph

This is a post back in 1.10 but now it's in 1.11 and you still need to do it manually!



来源:https://stackoverflow.com/questions/5390058/zend-tool-remove-controller-action

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!