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

#26
@sneakyimp

Offtopic a little, anyway:

"I could extend CI_Model, I suppose, but why would I do this?" - an example: https://github.com/jamierumbelow/codeigniter-base-model

"What happens when my DataObject defines a property that already belongs to the CI singleton?" - I have never hit such case, but if it happens, it could be easily resolved. Most probable candidate is the 'config' property, so within the constructor you can write $this->ci_config = get_instance()->config;
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 ivantcholakov - 12-28-2014, 09:24 PM
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.