I have tried to use the REST web service in cakephp as described in
http://manual.cakephp.org/view/476/rest
But, for some reason, it doesn't work. The RequestHandler doesn't seem
to be recognizing my test requests as REST calls.
I have this in app/routes.php as described:
Router::mapResources('events');
Router::parseExtensions();
Then, in the contoller:
class EventsController extends AppController {
var $name = "Events";
var $components = array('RequestHandler');
var $uses = array('Event', 'Person');
I'm testing the service with a curl/php5 request, using POST, wherein
the url is
http://www.mydomain.com/events
which should then invoke EventsController::add()
But no matter what I try, I'm getting a 199 response, with no more
info.
Any help would be great.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---