I have a database table called seasons:
CREATE TABLE IF NOT EXISTS `seasons` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(250) NOT NULL COMMENT `year` year(4) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `title` (`title`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; This table is binded to Season model and SeasonsController. Now I want to implement a RESTful webservice, following the rules explained here. I'm facing with success the retrieve of a season (view($id) method), the retrieve of the all seasons (index() method) and remove of existing season (delete($id) method).
The problem happens when I want to create a new season or editing an existing one. I think that the problem is 'cause i mistake the way in which I send the XML request. Does someone know how can I handle this?
Best regards
MC
--Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
No comments:
Post a Comment