I'm developing an Adobe FLEX client to interface with a MySQL database using Yii.
Everything has been grand so far, really enjoying Yii's AR code.
However, I'm really not liking how php parses application/xml. I can't seem to get the raw post data. I've tried several methods with no success. I was hoping Yii could help me with this?
FLEX code
private function deleteSelectedPriceQuote(id:Number):void
{
var deleteRequest:XML = <PriceQuoteDelete id={id}/>;
priceQuoteDeleteRequest.request = deleteRequest;
priceQuoteDeleteRequest.send();
}
PHP code
public function actionDeletePriceQuote()
{
if ( $_SERVER['REQUEST_METHOD'] === 'POST' )
{
echo file_get_contents("php://input");
}
}
I end up printing:
Quote
%40id=2