I am trying to pass an object type from Flex (Cairngorm) to PHP5
through AMFPHP 1.9 and I can't seem to get it to work. It seems that
PHP only recognizes the object as an array and ignores any private
variables in the object. Can anyone think of a reason that this
would be happening?
At it's simplest, I tried this just to try to get the object to be
recognized:
FLEX:
var tempVO:Object = new Object;
tempVO.name = 'kevin';
tempVO.pass = '123';
var call : Object = service.login( tempVO );
PHP:
public function login( $UserVO )
{
$this->Debug->write_log("passed from flex:\n\n".print_r($UserVO,
true));
return $UserVO;
}
LOG:
passed from flex:
Array
(
[name] => kevin
[pass] => 123
)