Welcome Guest, Not a member yet? Register   Sign In
Objects of Models within models?
#4

[eluser]Carl_A[/eluser]
Thanks for both your replies

[quote author="wiredesignz" date="1215268348"]If you need objects then create objects!

Code:
Class Member_model extends Model
  {
     //some properties

     $objUser = new User_model();
     $objAttributes[] = new Attributes_model();

      //some more functions that may also call functions from those objects

  }
[/quote]

Yes, but now im wondering, do those work as true objects or just allows me static calls?

forexample, objattributes[0], and objattributes[1] would be different objects right?

EDIT:
i meant
objattributes[0]->name = "name1";
objattributes[1]->name = "name2";

something like that.. not just function calls.


Messages In This Thread
Objects of Models within models? - by El Forum - 07-04-2008, 10:05 PM
Objects of Models within models? - by El Forum - 07-04-2008, 11:09 PM
Objects of Models within models? - by El Forum - 07-05-2008, 03:32 AM
Objects of Models within models? - by El Forum - 07-05-2008, 10:35 AM
Objects of Models within models? - by El Forum - 06-07-2011, 02:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB