Sourabh
Sourabh

Reputation: 1765

Removing or renaming actions

I am working on zend framework. I have mistakenly created some actions 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.

Upvotes: 2

Views: 342

Answers (1)

dinopmi
dinopmi

Reputation: 2673

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...

Upvotes: 2

Related Questions