Closed ghost closed 13 years ago
I'm pretty sure this was fixed in develop, did you check?
Oh no, the issue that was fixed was a bug. This is just you doing it wrong!
php oil g controller urls
I've made it so it will accept either. Solved!
Using FuelPHP v1.0 Final
When using oil g controller to create a new controller it creates the singular version of the filename and the classname rather than the pluralized one.
Example: php oil g controller url
Creates: app/classes/controller/url.php -> class Controller_Url extends ...
Rather than app/classes/controller/urls.php -> class Controller_Urls extends ...
Relevant lines are in packages/oil/classes/generate/generate.php
44: $filename = trim(strreplace(array('', '-'), DS, $singular), DS); 52: array_unshift($args, $singular);