What is Cake & Why?
Free & Open Source.
Rapid Development Frame Work Based Around MVC
Methodology.
Templating, Helpers, Components. In short reusable
code!
Built in Email, Cookie, Security, Session & Request
Handling Components.
Caching.
Modle View Controller
Model View Controller design patter is based upon
separating your code into three sections.
The Model represents the application data.
The View renders a presentation of the model data.
The Controller handles & routes requests made by
the client.
Modle View Controller
Basic Principles of CakePHP
Conventions
Extensions
Controller Extensions - Components
View Extensions - Helpers
Model Extensions - Behaviors
CSS/HTML - Elements
Typical Request
Directories
Config - Holds the application configuration files.
Database connection
Bootstrap
Core
Controllers - Contains your application controller &
components.
Models - Contains your application models, behaviors
& data sources.
Directories
Tmp - This is where CakePHP stores temporary data.
Vendors - Third Party Libraries.
Views - What the user sees.
Webroot - Contains CSS/JS/Flash/Etc Files
Quick Demo
Demo Goals
Install CakePHP
Install a Component
Configure Routes
Retrieve Data from 3rd Party API
0 comments
Post a comment