in case you are having the same problem:
I solved some of my own problem... One needs to set this var
correctly in advancedsettings.php (amfphp dir) to have incoming PHP
mapping work:
//One may choose to put mapped classes (incoming) outside of the
services folder also
$gateway->setBaseCustomMappingsPath('services/vo');
- Kevin
On Mar 3, 2007, at 9:34 AM, Kevin wrote:
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
)