We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 6
Introduction to PHP MVC
with CakePHP
G Jill Gundersen
pluralsiCakePHP Framework
= What is it?
a “CakePHP is a free, open-source, rapid development framework for PHP.”
- CakePHP.org
= Framework Based on MVC
a CakePHP is an MVC (Model-View-Controller) framework.
a Separates the code into areas which allows for rapid development
1 Simplifies the mundane and repetitive tasks in developing web applications.CakePHP Framework
= Why use it?
a CakePHP is similar to C#’s MVC Framework, which | am familiar with.
a Clean URLs
a Out of the box CakePHP has nice URLs
5 Does not use “index.php” which is prevalent in most PHP frameworks
a Separates presentation layer from business and logic layer
a Easily extendable
a Active community
2 Active development team (updated regularly)
a Need more convincing...
2 http://book.cakephp.org/2.0/en/cakephp-overview/what-is-cakephp-why-use-it htmlOverview of MVC
= MVC Design Pattern Separates an Application Into Three Parts
a Model
2. Business logic layer which interacts with the database
2 Save, retrieve, update, delete— all queries
2 Handles all data processing, validation and associations, plus anything else
related to the data
o View
2 Presentation layer which displays the information requested in a manner that
useful to the user
1 What the end user sees displayed in the browser
a Not limited to HTML
2 Xml,~more
a Controller
a Interacts with Models and Views to render a response back to the user
a Middle Child, definitely not forgotten.CakePHP Request Cycle
= Below is the Basic Overview of the CakePHP Request Cycle
68 5
From CakePHP.orgCourse Objectives
" Basic Overview of CakePHP
a Remember this is an introduction course
= Understand the MVC Framework
a Shown by example
= Create a Functional Application
a Media Catalog
3
3
3
3
3
3
Installation of CakePHP
Creating a database and tables
Management of the database (form applications)
Working with data validation
Adding a layout
Authentication
2 Limit access to certain areas of the site.