• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.