// enable encoding $object->encode(true); echo $object->property; // disable encoding echo $object->encode(false);
$model = Model_Example::find('first'); $array = $model->export(); $std_class = $model->export(true); $std_class = $model->export("stdClass"); $example_class = $model->export("Example_Class"); $obj = new stdClass(); $object = $model->export($obj);
It looks like you're new here. If you want to get involved, click one of these buttons!