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

Quote:Does this mean I'm never supposed to put my own classes in Model?
Of course not! The Libraries directory is for general classes not directly linked to the database model.

For your data_object class, you can extend the CI_Model class by renaming it MY_Model and putting it in application/core.
 
PHP Code:
MY_Model extends CI_Model 
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, 08:25 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