subscription
Object {id: "3", type: "all", name: "Order Payment Status Fully Paid", category_id: "-1", admin_contact_selector: "admin-1"…}
admin_contact: Object
admin_contact_selector: "admin-1"
category: Object
display: "flight: [All]"
id: "-1"
product_type: "flight"
__proto__: Object
category_id: "-1"
id: "3"
name: "Order Payment Status Fully Paid"
type: "all"
__proto__: Object
I have subscription object with the id value. I want to display the value of display in the category object.
print "<pre>";
var_dump($subscription['category']['dispaly']);
print "</pre>";
?>
my problem return value is null, real value is flight: [All]
Thanks a lot
echo $subscription->category->display;If you want to access it as an array then you need to get the db results using->result_array();or->row_array();instead of using->row()<-- assuming ofc that you are using DB results :)