php - CakePHP rest API not working -
i've model "note" controller looks this- http://pastebin.com/tqvjm7uw
when send request http://hostname/notes.json
able see notes in json format. example- http://pastebin.com/haf6fq9s
but when send request http://hostname/notes/4febea9d928488a443000000.json
message-
{"code":"404","url":"\/notes\/4febea9d928488a443000000.json","name":"action notescontroller::4febea9d928488a443000000() not found."}
my route.php file looks this-
cakeplugin::routes(); router::parseextensions(); router::parseextensions('json'); router::mapresources('notes');/** require cake . 'config' . ds . 'routes.php';
what wrong here? why rest requst index working fine not view?
i using mongodb datasource cakephp, moment switched old mysql driver, started working fine. not sure wrong mongodb datasource.
Comments
Post a Comment