开发者

Removing or renaming actions

I am working on zend framework. I have mistakenly created some actio开发者_JAVA百科ns which are not useful for me now. So either I want to remove those actions or rename them. Is there any command by which I can do that. If no, how can I do it manually? Means which are the files I need to edit to remove or rename the action completely.


I think it should be enough to remove the xxxxxAction() methods from your controllers. This is how I've always done it. If you have view scripts associated to the action it's good to remove them too, for housekeeping purposes, although it's not strictly necessary. If you are using Zend_Tool, you'll also need to edit your .zfproject.xml file (it's used only by Zend_Tool).

Perhaps there is another way of doing it, using Zend_Tool, but I'm more used to work "the manual way".

EDIT:

Actually, there is a similar question already posted: Zend_Tool remove controller/action

Hope that helps...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜