Not trivially, it seems.
This might work -- Write a method Inflector::dash(). Grep cake/libs/
for Inflector::underscore() and replace all instances with your new
Inflector::dash() method. You might also need to replace some naked
'_' characters in other library files.
You might completely break Cake, but it might also work. Not really
sure as I've never attempeted it...
Wayne
On 10/1/07, Joel Stein <[EMAIL PROTECTED]> wrote:
>
> > Router::connect('/best-practices', array('controller' => '/
> > best_practices'));
>
> Thanks. Yes, I knew about that. However, my $html->link() problem
> still remains. Is there a way to sort of globally map a route for a
> controller as something different than the actual controller name?
>
> > If you also want to get rid of the "_" between arguments and it's
> > value
> >
> > Just:set the
> > var $argSeparator = '-';
> > in you controller file,
>
> Actually, this only affects passed params, as far as I can tell. I'm
> looking for something which would affect the controller methods. Any
> ideas?
>
> Thanks for your help!
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---