• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where to put plain object classes?

#1
In your opinion, what's the correct place to put a plain object class file? The class I need is something similar to

PHP Code:
class PlainObject {

    private 
$id;

    public function 
getID() {
        return 
$this->id;
    }



and I want to use this class wherever I need it (a controller or a model or a helper or a library, etc). Any suggestion?
Reply


Messages In This Thread
Where to put plain object classes? - by geekita - 12-02-2014, 05:51 AM
RE: Where to put plain object classes? - by Jamie - 01-06-2015, 05:18 AM
RE: Where to put plain object classes? - by Jamie - 01-06-2015, 03:08 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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