I'm using Cakephp 2 I've been re factoring my code to use the Html->url() function instead of hard coding web addresses. For those not familiar, I pass a mixed $url variable containing controller and action names.
My gut tells me I should be defining the controller according to the file name and the action according to the function name inside the controller. ie: To route to AdminsController::index() I would say
$this->Html->url(array(
'controller'=>'Admins'
,'action'=>'index'
));
and that SHOULD generate for me the url
http://example.com/admins/index
Unfortunately, what it is generating for me is
http://example.com/Admins/index
*notice the uppercase "A" in admins.
The purest in me refuses to identify the controller by its inflected name because then what's the advantage of using the url helper function at all? Why wouldn't I just write out the urls myself?
Shouldn't the url function be inflecting the controller names? Isn't lower case / camel case a part of the inflection process? Is there any way I can force this behavior?
Thanks