13. RAW POST/PUT REQUEST DATA? <?php // get RAW HTTP POST $rawData = file_get_contents( 'php://input' ); // but this won't work with enctype="multipart/form-data" :(
14. Why is symfony not RESTful? because RESTful web service is about resources, not functions/actions
17. /** * HTTP GET handler */ public function __handleGet () { // Not implemented $this->_response->setResponseCode(501); } /** * HTTP POST handler */ public function __handlePost () { // Not implemented $this->_response->setResponseCode(501); } /** * HTTP PUT handler */ public function __handlePut () { // Not implemented $this->_response->setResponseCode(501); }
18. /** * HTTP DELETE handler */ public function __handleDelete () { // Not implemented $this->_response->setResponseCode(501); } /** * HTTP HEAD handler */ public function __handleHead () { // Not implemented $this->_response->setResponseCode(501); }