On Saturday, 30 June 2012 06:46:12 UTC+3, gk wrote:
My "Notes" controller looks like this- http://pastebin.com/ReppRt4t--And routes.php as-CakePlugin::routes();Router::parseExtensions('json'); Router::mapResources('notes');Router::parseExtensions();require CAKE . 'Config' . DS . 'routes.php';When I make GET call to http://hostname/notes.json I am able to see results as expected. Sample result- http://pastebin.com/pYY3H2Ja But when I make GET call as http:// hostname /notes/1234.json I get error-{"code":"404","url":"\/notes\/1234.json","name":"Action NotesController:: 1234() could not be found."} Why is that index function is working as expected but not view function? I suspect something is wrong with routing. What could be wrong?Thanks,GK
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