I'm having this problem with retrieving properties from an object.
This car example is just something
I'm using to test with.
Here I have a php function which receives an object with three
properties, id, make, and model.
When I return the $car object, I can see and retrieve the object's
properties & their values in flex
and in the Charles debugging proxy I have running.
public function outputCar($car) {
return $car;
}
Here I try to return just a single property of the same object,
however in flex and the proxy,
all I get is a null value.
public function outputCar($car) {
return $car->make;
}
The problem with this is that I don't need the values to be returned
to flex, I just need to bind the
properties to a prepared statement for writing to the database.
This is the the class definition for the object:
<?php
class VOCar {
public $id;
public $make;
public $model;
}
?>
Any ideas?
Thanks,
Andrew
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]