Where to put plain object classes? |
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 { |
Welcome Guest, Not a member yet? Register Sign In |