Zend_Tool删除控制器/动作 [英] Zend_Tool remove controller/action

查看:82
本文介绍了Zend_Tool删除控制器/动作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Zend_Tool制作了一个控制器,但是现在我想删除该控制器.我知道我可以删除该文件,但是我想知道是否可以使用Zend_Tool来执行此操作,因此我不需要自己编辑.zfproject.xml.

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.

谢谢!

推荐答案

您必须手动将其删除.

You have to manually delete it.

此功能的发布时间为1.10. 它被排除在1.8和 1.9发布有两个很好的理由.由于删除很漂亮 不可逆的动作,有时是 也是递归操作-我们想 确保控制台/CLI界面 至少有能力问 用户是否可以删除,否则 确认决定的词 删除一些东西.这样的人 不会意外删除东西 他们将无法恢复.

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

这是发布于1.10的帖子,但现在发布于1.11,您仍然需要手动进行操作!

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

这篇关于Zend_Tool删除控制器/动作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆