CakePHP Routing Alias, no prefix
Posted
by Jason McCreary
on Stack Overflow
See other posts from Stack Overflow
or by Jason McCreary
Published on 2010-05-24T21:14:19Z
Indexed on
2010/05/25
0:31 UTC
Read the original article
Hit count: 233
cakephp
I have a dashboard with a series of widgets. Per specification, the widgets need to be buried under a /widgets/ directory.
So I have added the following to my routes.php
Router::connect('/widget/:controller/:action/*', array());
But I seem to be running into trouble on widgets/links/ and widgets/links/view/1
I am new to CakePHP, but this doesn't seem all that impressive. I have yet to find anything in the Book or by search. So any help is appreciated.
Thanks.
© Stack Overflow or respective owner