Hello I need to build an application in Webservice to return data for a particular billing.
I thought about using REST to provide data json / xml instead of nusoap, but I'm sure how to do it.
First I'm using cakePHP version 1.3, and following the cake book [1].
According to according to the book I should map the model which give permission to access REST.
The problem:
In this case I need to perform a find in various tables and perform an operation with her results in a foreach, and then send the answer to this operation via JSON / XML.
What I did:
I created a controller called ws_billing_controller.php that will manage the requests get to the rest.
routes.php -> Router :: mapResources ('') / / empty do not know what to put here
routes.php -> Router :: parseExtensions ('json', 'xml');
ws_billing_controller.php -> [2]
I wonder if the path I'm following this right, or should I change?
[1] http://book.cakephp.org/1.3/pt/view/1239/Configura% C3% A7% C3% A3o-Simple
[2] http://dpaste.com/hold/762069/
-- 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