Welcome Guest, Not a member yet? Register   Sign In
Accessing data in controller
#3

[eluser]Martin Rusev[/eluser]
Yes there is Smile

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
        )


Messages In This Thread
Accessing data in controller - by El Forum - 01-20-2008, 08:13 AM
Accessing data in controller - by El Forum - 01-20-2008, 02:04 PM
Accessing data in controller - by El Forum - 01-20-2008, 03:50 PM
Accessing data in controller - by El Forum - 01-20-2008, 04:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB