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

[eluser]MEM[/eluser]
I have a connection class that needs to be used by several model files. Not all however.

I should call this connection on each model that I need to use it. - I presume.

So, at this moment I'm using something like:
Code:
class myStuff extends Model {

So, one way for doing this could be:

Code:
class myStuff extends MyModel {

and MyModel will extend Model.

By doing so, I can call my connection class on "MyModel";


What do you think?


Regards,
Márcio


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



Theme © iAndrew 2016 - Forum software by © MyBB