Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CakePHP3 - Reverse (delete) generated (baked) controller

I generated (baked) controller via terminal command:

bin/cake bake.bake controller [controller_name]

Is there a command to reverse it? To delete generated controller?

like image 547
Kunok Avatar asked Oct 18 '22 05:10

Kunok


1 Answers

CakePHP does not have reverse generator.

When deleting files with rm -rf or by hand, you should note that new files are not only generated inside Controller directory. You should also track other files in test and template directories.

Possible workaround for this is to use a real framework like Ruby On Rails or write your own shell scripts for generating or deleting.

like image 197
Kunok Avatar answered Oct 21 '22 22:10

Kunok