There is no chapter in the book about REST resource routing for plugins in cake1.3. Example with mapResources will not work.
Here is the solution that I am using:
Router::mapResources(array('rides'), array('prefix' => '/:plugin/'));
Router::parseExtensions();
Do you know any better?
I hope this helps someone. Add it to the book if you can, coz I can't login.
Cheers,
Yarik
-- Cheers,
Yarik
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment