O'Reilly logo

Programming with CodeIgniter MVC by Yehuda Zadik, Eli Orr

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Models

This chapter covers the CI models, their role, and their usage with several code examples of web applications. The model is responsible for handling the database it stores and retrieves database objects used by the application from a database and contains the logic implemented by the application.

Much of the data that is part of the persistent state of the application (whether that persistent state is stored in files or databases) should reside in the model objects after the data is loaded into the application. Because the model objects represent knowledge and expertise related to a specific topic, they can be reused in the application.

The model represents the application data services and can serve the application logic (commonly ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required