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

#29
(12-29-2014, 09:33 AM)sneakyimp Wrote: All it does is write a log message when constructed and then define a __get magic method that refers to the CodeIgniter singleton.

What's your point? You don't want to use the CI_Model class at all?


Quote:I could be completely missing something, but I wonder why I would want to have my DataObjects coughing up properties of the CI singleton object as if those properties were its own? What happens when my DataObject defines a property that already belongs to the CI singleton?

Why would it cough up CI properties?
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 includebeer - 12-30-2014, 10:11 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.