On Feb 7, 2011, at 22:23, tnbrooks wrote:
> 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.
Don't you need:
http://localhost/webapp/api/users/view/1
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php