I am about to ask a more general conceptual question as apposed to a coding issue. I have recently started using the codeigniter framework and am trying to learn the principles of MVC - so please be patient. I roughly accept this as a really simplistic way of looking at MVC.
- Models - Core logic of the system that passes data from DB to the controller
- Controller - Glue that holds the system together and allows data from the view to be passed to the model and vice versa
- View - The view that a user should see within the browser - some form data will be firstly passed to the controller.
*But I was wondering more about the ability of the model. For example, can data from the database be pulled from the model and stored? For example, could the model hold an array of names say that I have queried back from the database? Could I then display these to the user 1 by 1 using a button to increment a pointer to point to the next name in the array for example. I apologize if this is a stupid question just trying to figure out how data from the db is handled within the model.