5

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!

priktop
  • 1,155
  • 3
  • 12
  • 30

1 Answers1

4

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!

markus
  • 40,136
  • 23
  • 97
  • 142
KJYe.Name
  • 16,969
  • 5
  • 48
  • 63
  • Yeah I saw that post aswell, but I was hoping that there would be a solution already :) Thanks anyways. I'm leaving it open for a bit longer, maybe someone else knows a solution. – priktop Mar 22 '11 at 15:49
  • @priktop You need to do that manually, by removing the action method in the controller and deleting the view script. You have also to edit the .zfproject.xml in the root of your project. – KJYe.Name Mar 22 '11 at 19:01
  • 3
    Let's keep this question in mind and add an update once Zend_Tool can manage deletions as well. – markus Mar 22 '11 at 20:24
  • @markus i don't think it'll be anytime soon, but i too, am waiting for it ;X – KJYe.Name Mar 22 '11 at 23:27