Beginner confused with CI 2.0 Pagination |
CodeIgniter is based on the MVC (Model-View-Controller) development pattern. This pattern dictates that data, html and logic should be separated, but with CI it is possible to derive from the pattern. You can put database queries in a view if you really want, but it's certainly not the best way of doing things.
So here it goes... Models are classes with methods to retrieve, insert and change your data. A view is a (part of a) webpage. The controller hold most of the logic, where you call a method of the model to retrieve your data, which you can give to a view to display it on a webpage. There is a section in the documentation about this which you can find at: http://www.codeigniter.com/user_guide/overview/mvc.html Hope this clarifies things. -Roger |
Messages In This Thread |
Beginner confused with CI 2.0 Pagination - by jithinjohnygeorge - 06-13-2015, 02:14 PM
RE: Beginner confused with CI 2.0 Pagination - by solidcodes - 06-13-2015, 03:33 PM
RE: Beginner confused with CI 2.0 Pagination - by Blair2004 - 06-14-2015, 03:17 AM
RE: Beginner confused with CI 2.0 Pagination - by RogerMore - 06-15-2015, 01:19 AM
RE: Beginner confused with CI 2.0 Pagination - by jithinjohnygeorge - 06-15-2015, 02:51 AM
RE: Beginner confused with CI 2.0 Pagination - by kahumbu - 06-20-2015, 02:07 PM
|