Duration
3 days
Introduction
CakePHP is a PHP framework designed to help php developers in rapidly developing build web applications. CakePHP framework provides a set of tools for the php developers to make the repetitive tasks easier and eliminate a lot of the basic work which most of the applications will require. CakePHP, includes the ability to have clean URLs, validate and sanitize the user input from malicious hackers. It also prevents common security issues such as SQL injection and cross-site request forgery (CSRF). CakePHP framework also includes a built-in caching, supports internationalization and localization the systems.
CakePHP is consider as one of the critical framework for every PHP developers. It helps them build complex web applications faster and more efficiently.
Who Should Attend
Developers who wish to know how to develop web applications using Cake PHP Framework.
Prerequisites
Participants should have practical experience of writing web applications in PHP.
Course Topics
Day 1
- Introduction to CakePHP
Overview
- CakePHP request cycle
- Installation
- Folder Structure
- Configuration
- General Configuration
- Database Configuration
- Email Configuration
- Email Delivery Profiles
- Routing
- Form Methods
- Connecting Routes
- Passing parameters
- Routing array
- Generating URLs
- Redirect Routing
- Connecting Routes
- Route Elements
- Reserved Route Elements
- Configuring Route Options
- Named Routes
- Prefix Routing
- Summary
- Controllers
- Introducing Controllers
- App Controller
- Request Flow
- Controller Actions
- Loading Models
- Interacting with Views
- Rendering a View
- Rendering to Other Pages
- Pages Controller
- Components
- Summary
Day 2
- View
Overview
- The App View
- View Templates
- Alternative Control Structures
- Setting View Variables
- Extending Views
- Using View Blocks
- Displaying Blocks
- Using Blocks for Script and CSS Files
- Layouts
- Elements
- Passing Variables to an Element
- Caching Elements
- View Events
- Summary
- Database Access & ORM
Introduction
- Managing Connections
- Data Types
- Interacting with Statements
- Query Logging
- Selecting Data
- Getting Results
- Loading Associations
- Insert Data
- Updating Data
- Deleting Data
- SQL Injecting Prevention
- Summary
- Entities
- Creating Entity Classes
- Accessing Entity Data
- Accessors & Mutators
- Validation Errors
- Mass Assignment
- Lazy Loading Associations
- Retrieving Data & Result Sets
- Validating Data
- Saving Data
- Deleting Data
- Associations
- Behaviours
- Summary
Day 3
- Authentication
- Authentication Type
- Authentication Handlers
- Customizing Find Query
- Identifying Users and Logging them in
- Redirecting Users After Login
- Stateless Authentication Systems
- Using Basic Authentication
- API Keys for Basic Authentication
- Hashing Passwords & Hashing Algorithms
- Authorization
- Authorization Handlers
- Cross Site Request Forgery
- Session Handlers
- Database and Cache sessions
- Summary
- REST
Introduction
- Simple Setup
- Accepting Input in other Formats
- Restful Routing
- Creating Nested Resource Routes
- Limiting the Routes Created
- Changing Controller Actions
- Resource Routes
- Custom Route Classes
- URL Inflection for Resource Routes
- Summary
- Utility Classes
- App Class
- Collections
- Folders & Files
- Hash
- Http Client
- Inflector
- Number
- Registry Objects
- Text
- Date & Time
- XML
- Summary
Programme scope, delivery arrangements and suitability are confirmed during enquiry.