Best practices using multiple object instances? |
[eluser]Unknown[/eluser]
I am pretty new to CI and faced this challenge. This is what I devised to get around this problem without any change or addon to CI. This is an example code to create multiple instances of an object/model Code: foreach($_REQUEST['users'] as $userid){ To use the object use the following code Code: foreach($usersArray as $theUser){ For more explanation please refer to my post How to Create and Handle an Array of Models or Objects in Codeigniter |
Messages In This Thread |
Best practices using multiple object instances? - by El Forum - 07-28-2010, 08:49 AM
Best practices using multiple object instances? - by El Forum - 07-28-2010, 09:07 AM
Best practices using multiple object instances? - by El Forum - 07-28-2010, 09:26 AM
Best practices using multiple object instances? - by El Forum - 07-28-2010, 09:35 AM
Best practices using multiple object instances? - by El Forum - 07-28-2010, 12:04 PM
Best practices using multiple object instances? - by El Forum - 07-31-2011, 09:20 PM
Best practices using multiple object instances? - by El Forum - 08-01-2011, 01:34 AM
Best practices using multiple object instances? - by El Forum - 08-11-2011, 06:01 PM
|