Welcome Guest, Not a member yet? Register   Sign In
Model best practices
#6

[eluser]CodeIgniteMe[/eluser]
Quote:So why should I use a parent-property instead of looping over $this directly? Security? Faster?

Because $this is an object, and not an array, if you make $this as an array, the object instance will be overwritten.
And also, using a 'parent-property' is the proper way to store values, etc.


Messages In This Thread
Model best practices - by El Forum - 07-11-2011, 09:19 PM
Model best practices - by El Forum - 07-11-2011, 10:28 PM
Model best practices - by El Forum - 07-12-2011, 07:03 AM
Model best practices - by El Forum - 07-12-2011, 07:11 PM
Model best practices - by El Forum - 07-12-2011, 07:42 PM
Model best practices - by El Forum - 07-12-2011, 07:50 PM
Model best practices - by El Forum - 07-12-2011, 07:51 PM
Model best practices - by El Forum - 07-12-2011, 08:01 PM
Model best practices - by El Forum - 07-12-2011, 08:08 PM
Model best practices - by El Forum - 07-12-2011, 08:11 PM
Model best practices - by El Forum - 07-12-2011, 08:29 PM
Model best practices - by El Forum - 07-12-2011, 08:30 PM
Model best practices - by El Forum - 07-12-2011, 08:35 PM
Model best practices - by El Forum - 07-12-2011, 08:39 PM
Model best practices - by El Forum - 07-13-2011, 11:12 PM
Model best practices - by El Forum - 07-14-2011, 01:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB