$ oil g admin clients name:string licensee_limit:int
Oil is throwing:
Error: /project/fuel/app/classes/controller/base.php already exists, use -f or --force to override
If I --force the issue, it overwrites my base controller. How can I prevent this? I have a bunch of admin interfaces that I need to generate, and they all need to extend my already existing base controller. Am I going about this the wrong way?
I just realized that it overwrote my admin controller too. Luckily I'm using git, so I didn't completely hose everything, but clearly I'm doing this completely wrong.
I did some research but couldn't find anything about the oil g admin command. I'm assuming that it creates the basic admin interface and extends the base controller, basically like scaffold except with those extra controllers generated. If I use:
$ oil g scaffold admin_clients name:string licensee_limit:int
it doesn't try to regenerate my base or admin controllers. It doesn't extend the proper controller by default, but that's easy enough to fix by hand.
On a side note: it would be nice if oil had an option to generate namespaced code instead of using the old Controller_ and Model_ style syntax.