Welcome Guest, Not a member yet? Register   Sign In
Model Bouncing - Best Practices?
#2

[eluser]WanWizard[/eluser]
You have to stop the recursion in your code.

You could do that with a second parameter (for example a boolean) for one of the two method calls, instructing the method not to dig deeper.

for example, if you call $this->car-get() from the manufacturers model, you allready know the manufacturer. So use the second parameter to indicate you only want car info, and no manufacturer details.


Messages In This Thread
Model Bouncing - Best Practices? - by El Forum - 09-03-2010, 06:59 PM
Model Bouncing - Best Practices? - by El Forum - 09-04-2010, 04:14 AM
Model Bouncing - Best Practices? - by El Forum - 09-04-2010, 05:18 AM
Model Bouncing - Best Practices? - by El Forum - 09-04-2010, 05:41 AM
Model Bouncing - Best Practices? - by El Forum - 09-04-2010, 11:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB