Welcome Guest, Not a member yet? Register   Sign In
Store objects in array elements
#1

[eluser]LifeSteala[/eluser]
Usually, in your controller you have an array, say $data[] which is parsed to the view, like so:

Code:
$this->load->view('View', $data);

The array would store strings like:

Code:
$data['a'] = "hello";
$data['b'] = "goodbye";
$data['c'] = "cya";

How can you create objects and store it in a,b and c?? So, $data['a'] will have object a, b will have object b, c->object c.. any idea's?


Messages In This Thread
Store objects in array elements - by El Forum - 08-29-2007, 04:51 PM
Store objects in array elements - by El Forum - 08-30-2007, 03:05 AM
Store objects in array elements - by El Forum - 08-30-2007, 03:29 AM
Store objects in array elements - by El Forum - 08-30-2007, 04:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB