-
Book Overview & Buying
-
Table Of Contents
Programming with CodeIgniter MVC
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 referred to as business logic), as well. Usually, the model is responsible for the following operations:
Adding, modifying, deleting, and searching the application database objects: Generally, this includes the database operations, but implementing...
Change the font size
Change margin width
Change background colour