Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • So, if I understand correctly (focusing on User for example), you're saying I should create the User class as a library, then create a $User object in MainController and use User's methods from there to return the needed data? Commented Nov 10, 2013 at 14:47
  • Yes, but create an object if you have multiple "User" like an array of User object, in other case load the class by CI Loader. Commented Nov 10, 2013 at 14:54
  • User is the logged in user, so there's only one at any given time. Commented Nov 10, 2013 at 14:56