controller name with hyphen in cakephp 2x url

0

I'm working google SEO on my site, and I realized that in word separations, a hyphen is better than an underline, or words together, but I realized that at first cakephp does not accept that it creates controllers in this way curso-no-exterior only like this or similar forms CursoNoExterior , but I have been searching and I saw that in other frameworks it is possible to make the url hyphenated. And I want to know if it's also possible in cakephp.

    
asked by anonymous 03.12.2015 / 12:47

1 answer

0

link
According to the documentation of cakephp 2x, to mount a route for all actions of a controller, just do it this way.
Router::connect('/cooks/:action/*', array('controller' => 'users'));
In this way, all the actions you have inside the Controller will follow the new route you created.

    
03.12.2015 / 14:53