简体   繁体   English

Zend_Tool删除控制器/动作

[英]Zend_Tool remove controller/action

I made a controller with Zend_Tool, but now I want to delete the controller. 我用Zend_Tool制作了一个控制器,但现在我要删除控制器。 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. 我知道我可以删除该文件,但我想知道是否有办法用Zend_Tool做到这一点,所以我不需要自己编辑.zfproject.xml。

Thanks! 谢谢!

You have to manually delete it. 您必须手动删除它。

This functionality is slated for 1.10. 此功能定于1.10。 It was left out of the 1.8 and 1.9 release for a couple of good reasons. 由于几个很好的理由,它被排除在1.8和1.9版本之外。 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. 由于删除是一个非常不可逆转的操作,有时也是一个递归操作 - 我们希望确保控制台/ cli界面至少能够询问用户是否删除是否正常,换句话说确认删除某些内容的决定。 This way, people will not accidentally delete things they will not be able to recover. 这样,人们就不会意外删除他们无法恢复的东西。

-ralph -ralph

This is a post back in 1.10 but now it's in 1.11 and you still need to do it manually! 这是1.10中的帖子,但现在是1.11,你仍然需要手动完成!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM