I set everything up the way the docs recommend by putting fuel above the htdocs folder on both mamp and xampp even tried within the htdocs folder with the proper rewrite rules. The welcome page works fine every single time but when I tried out scaffolding via oil I always get a 404 regardless. I have orm auto loaded inf the config and I have played with mod_rewrite rules that I have found in the forums and still getting 404. I also made a test controller and it works so not sure if I'm missing anything.
Any help is appreciated.
Thanks.
First thing I did. Whats weird is that I renamed the controllers and the file names and it works fine. So I'm only getting 404's on newly created files via oil and scaffolding. No clue what the issue could be.
Same thing happens to me. I think it's related to the 's'.
The example command in the docs 'oil g scaffold monkey name:string description:text' generates
filenames:
Creating model: /www/webroot/fuel/app/classes/model/monkey.php
Creating migration: /www/webroot/fuel/app/migrations/001_create_monkeys.php
Creating controller: /www/webroot/fuel/app/classes/controller/monkeys.php
Creating view: /www/webroot/fuel/app/views/monkeys/index.php
Creating view: /www/webroot/fuel/app/views/monkeys/view.php
Creating view: /www/webroot/fuel/app/views/monkeys/create.php
Creating view: /www/webroot/fuel/app/views/monkeys/edit.php
Creating view: /www/webroot/fuel/app/views/monkeys/_form.php
Creating view: /www/webroot/fuel/app/views/template.php
controller class name:
"class Controller_Monkey extends Controller_Template {"
I'll have a look at the scaffolding template tonight to solve this issue.
I didn't notice the 's' at first but now that you mention it, it makes sense. So after looking at the scaffolding template I think I have narrowed it down to line 60. Not sure if this is the right way to fix it but this is what I changed and everything seems to be working now.
$data = 'Controller_'.\Inflector::classify(\Inflector::pluralize($full_underscores));
to
$data = 'Controller_'.\Inflector::pluralize(\Inflector::classify($full_underscores));
That seems to do the trick although I'm not really fond of the fact that my given parameter will be changed by the oil template. There are a lot of cases in which pluralist simply doesn't make sense. But hey, that is why we have a template