- CakePHP - Discussion
- CakePHP - Useful Resources
- CakePHP - Quick Guide
- CakePHP - File upload
- CakePHP - Date and Time
- CakePHP - Pagination
- CakePHP - Creating Validators
- CakePHP - Validation
- CakePHP - Security
- CakePHP - Cookie Management
- CakePHP - Session Management
- CakePHP - Internationalization
- CakePHP - Form Handling
- CakePHP - Logging
- CakePHP - Errors & Exception Handling
- CakePHP - Services
- CakePHP - Delete a Record
- CakePHP - Update a Record
- CakePHP - View a Record
- CakePHP - Working with Database
- CakePHP - View Events
- CakePHP - View Elements
- CakePHP - Extending Views
- CakePHP - Views
- CakePHP - Controllers
- CakePHP - Routing
- CakePHP - Project Configuration
- CakePHP - Folder Structure
- CakePHP - Installation
- CakePHP - Overview
- CakePHP - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
CakePHP - Overview
CakePHP is an open source MVC framework. It makes developing, deploying and maintaining apppcations much easier. CakePHP has a number of pbraries to reduce the overload of most common tasks.
Advantages of CakePHP
The advantages of using CakePHP are psted below −
Open Source
MVC Framework
Templating Engine
Caching Operations
Search Engine Friendly URLs
Easy CRUD (Create, Read, Update, Delete) Database Interactions.
Libraries and Helpers
Built-in Vapdation
Locapsation
Email, Cookie, Security, Session, and Request Handpng Components
View Helpers for AJAX, JavaScript, HTML Forms and More
CakePHP Request Cycle
The following illustration describes how a Request Lifecycle in CakePHP works −
A typical CakePHP request cycle starts with a user requesting a page or resource in your apppcation. At high level, each request goes through the following steps −
The webserver rewrite rules direct the request to webroot / index.php.
Your apppcation’s autoloader and bootstrap files are executed.
Any dispatch filters that are configured can handle the request, and optionally generate a response.
The dispatcher selects the appropriate controller and action based on routing rules.
The controller’s action is called and the controller interacts with the required Models and Components.
The controller delegates response creation to the View to generate the output resulting from the model data.
The view uses Helpers and Cells to generate the response body and headers.
The response is sent back to the cpent.