I orginally added the resources for models in my routes file to create an api for my app. Router::mapResources('users'); Router::mapResources('topics'); ..... As well as the extension parser Router::parseExtensions();
I'd like to have a web app and an api from the same app so have created a prefix for my api: Router::connect('/api/:controller/:action/*', array('prefix' => 'api', 'api' => true)); Now when I go to http://localhost/webapp/api/users the index displays fine, however if I go to http://localhost/webapp/api/users/1 it no longer displays the user with id 1 as it did when I didn' have the prefix. Have i done something wrong or is this a known issue? The error I am getting is this: Error: The requested address '/api/users/1' was not found on this server. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php