Welcome Guest, Not a member yet? Register   Sign In
Where to put plain object classes?
#22

(12-28-2014, 01:07 PM)sneakyimp Wrote: I do want an autoloader. That way, I can get rid of those 2000+ require/include statements and get to the actual coding.

Then write an autoloader! What can I say?

The original question is "what's the correct place to put a plain object class file?" and right now there's no way to load a class without creating a singleton and there's no autoloader in CI. That's why I use require and that's why I say that if the framework doesn't provide what you need, code it yourself.

This is turning into a debate on autoloaders...
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-28-2014, 06:46 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