Join Jon Peck for an in-depth discussion in this video Introducing the MVC development pattern, part of Up and Running with PHP CodeIgniter (2013).
I'm going to explain MVC at only a very high level as this courses focus is on…CodeIgniter . For a more comprehensive description I…recommend MVC Frameworks for Building PHP Web Applications with Drew Falkman here in…the lynda.com online training library. MVC stands for Model-View-Controller.…It's a software design pattern that separates the representation of…information from user interaction. This explicit separation of components…allows for greater code reusability and logical separation of program responsibilities.…
In short MVC keeps code organized, which in turn helps projects and teams.…CodeIgniter uses a loose approach to MVC which I'll get into more detail in a bit.…There are three components to MVC. The first, model is the representation of…data structures, business rules, and functions.…This is where really basic, create, read, update, and destroy or CRUD functionality…is defined. Next is a View, which is a representation…of the information that's presented to the user.…The View is where all HTML rendering takes place.…
Starting with the what and why of CodeIgniter, Jon introduces key concepts such as the MVC pattern and libraries by demonstrating how to create static pages, then storing and displaying magazine info in a database. Advanced topics like classes and helpers are explored to validate user input, upload files, and much more. By creating a complete system, you'll have the foundation to build your own applications with CodeIgniter.
- What is CodeIgniter?
- Creating a static page controller
- Generating output with a view
- What is a model?
- Saving data with Active Records
- Creating forms
- Validating user input
- Listing records in tables
- Uploading images
- Viewing and deleting records