Welcome Guest, Not a member yet? Register   Sign In
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



Theme © iAndrew 2016 - Forum software by © MyBB