[eluser]Martin Rusev[/eluser]
Yes there is
I want to retrieve all the information from the database and then use it and pass only subcategory_id from the retrieved array back to another model that retrieves Subcategory name from another table
From this array - i am trying to take the value of subcategory_id - all this happens in the controller i searched through the forum and don't found any way to take this value
Code:
Array
(
[0] => stdClass Object
(
[id] => 1
[subcategory_id] => 2
[article] => Article 1
[product_name] => Product Name 1
[product_thickness] => 12
[product_lenght] => 180
[product_weight] => 122
[product_price] => 230
)
[1] => stdClass Object
(
[id] => 5
[subcategory_id] => 2
[article] => Article 2
[product_name] => Product Name 2
[product_thickness] => 23
[product_lenght] => 23
[product_weight] => 23
[product_price] => 23
)