Welcome Guest, Not a member yet? Register   Sign In
Basic design question - where to put the a API connection class - extend the model?
#4

[eluser]bretticus[/eluser]
[quote author="MEM" date="1286571670"]Yes that last option was what I was talking about. Wink

It works. I used MY_Model the MY_Model extends Model and, on one of MY_Model method I have a database connection class call.

Just wondering if this is a nice way of doing so...

Wink Regards[/quote]

That's actually a good way to go about it. I would have probably put it in the constructor for each Model where I needed it, but that's not very DRY.


Messages In This Thread
Basic design question - where to put the a API connection class - extend the model? - by El Forum - 10-08-2010, 10:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB