• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.