CANCEL
Subscription
0
Your Cart
(0 item)
You have no products in your basket yet
Checkout
Account
Sign in
New User?
Create Account
Your Subscription
Your Owned Titles
Your Account
Your Orders
Change country
United States
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Japan
Slovakia
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
GO TO
TOP
You're reading from
CakePHP 2 Application Cookbook
Over 60 useful recipes for rapid application development with the CakePHP framework.
Product type
Paperback
Published in
Aug 2014
Publisher
ISBN-13
9781782160083
Length
346 pages
Edition
3rd Edition
Languages
PHP
Tools
CakePHP
Concepts
Server Side Web Development
Table of Contents
(14) Chapters
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
1. Lightning Introduction
FREE CHAPTER
Introduction
Listing and viewing records
Adding and editing records
Deleting records
Adding a login
Including a plugin
2. Advanced Routing
Introduction
Adding a prefix
Handling languages
Custom route class
Dispatch filter
3. HTTP Negotiation
Introduction
Parsing extensions
Processing Ajax requests
Building a response
Uploading a file
Using a detector
Working with cookies
Cache control
Error handling
4. API Strategies
Introduction
RESTful resources
Exposing a web service
Consuming a service
Authentication API
API versioning
5. Using Authentication
Introduction
The HTTP authentication
Custom authorize class
Facebook authentication
Custom RBAC
Working with ACL
6. Model Layer
Introduction
Has and belongs to many (HABTM)
Joining through
Containing models
Custom finders
On-the-fly associations
Using transactions
7. Search and Pagination
Introduction
Pagination
Basic search and filter
The Search plugin
Advanced search
8. Events System
Introduction
Listeners and subscribers
Event-driven process
Event stacking
Managing event priorities
9. Creating Shells
Introduction
Console API
Import parser
Running cron shells
Using the I18n shell
10. View Templates
Introduction
Using blocks
Building an XML view
Generating a PDF
Writing some PDF content to a file
Translations
View caching
The AssetCompress plugin
11. Unit Tests
Introduction
Dependency Injection
Creating a fixture
Mock objects
Stub method configuration
Model unit testing
12. Migrations
Introduction
Schema handling
Syncing changes
The Migrations plugin
Injecting data
Index
Chapter 5. Using Authentication
In this chapter, we will cover the following recipes:
The HTTP authentication
Custom authorize class
Facebook authentication
Custom RBAC
Working with ACL
The rest of the chapter is locked
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Start free trial
Previous Section
Section 1 of 7
Next Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Sign up now
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Start free trial
Renews at
$19.99/month
. Cancel anytime
₹799 | ALL EBOOKS, VIDEOS & AUDIOBOOKS
Your learning journey starts here: 8000+ learning resources for
₹799
each!
SHOP NOW
Personalised recommendations for you
Based on your interests and search pattern
Modern Full-Stack React Projects
Read more
Full-Stack React Projects is a complete guide to learning full-stack web development, understanding the creation and integration of backend systems, and advancing your career as a frontend developer.
Read more
Jun 2024
16h 52m
Modern Full-Stack React Projects
Read more
Full-Stack React Projects is a complete guide to learning full-stack web development, understanding the creation and integration of backend systems, and advancing your career as a frontend developer.
Read more
Jun 2024
16h 52m
Modern Full-Stack React Projects
Read more
Full-Stack React Projects is a complete guide to learning full-stack web development, understanding the creation and integration of backend systems, and advancing your career as a frontend developer.
Read more
Jun 2024
16h 52m
Modern Full-Stack React Projects
Read more
Full-Stack React Projects is a complete guide to learning full-stack web development, understanding the creation and integration of backend systems, and advancing your career as a frontend developer.
Read more
Jun 2024
16h 52m
Modern Full-Stack React Projects
Read more
Full-Stack React Projects is a complete guide to learning full-stack web development, understanding the creation and integration of backend systems, and advancing your career as a frontend developer.
Read more
Jun 2024
16h 52m
Modern Full-Stack React Projects
Read more
Full-Stack React Projects is a complete guide to learning full-stack web development, understanding the creation and integration of backend systems, and advancing your career as a frontend developer.
Read more
Jun 2024
16h 52m
Modern Full-Stack React Projects
Read more
Full-Stack React Projects is a complete guide to learning full-stack web development, understanding the creation and integration of backend systems, and advancing your career as a frontend developer.
Read more
Jun 2024
16h 52m
Modern Full-Stack React Projects
Read more
Full-Stack React Projects is a complete guide to learning full-stack web development, understanding the creation and integration of backend systems, and advancing your career as a frontend developer.
Read more
Jun 2024
16h 52m
Mastering Node.js Web Development
Read more
Explore Node.js with practical examples that will teach you how to utilize open-source packages for real-world solutions. Gain the skills to develop and deploy server-side applications that enhance your client-side projects.
Read more
Jun 2024
25h 56m
Mastering Node.js Web Development
Read more
Explore Node.js with practical examples that will teach you how to utilize open-source packages for real-world solutions. Gain the skills to develop and deploy server-side applications that enhance your client-side projects.
Read more
Jun 2024
25h 56m
Mastering Node.js Web Development
Read more
Explore Node.js with practical examples that will teach you how to utilize open-source packages for real-world solutions. Gain the skills to develop and deploy server-side applications that enhance your client-side projects.
Read more
Jun 2024
25h 56m
Mastering Node.js Web Development
Read more
Explore Node.js with practical examples that will teach you how to utilize open-source packages for real-world solutions. Gain the skills to develop and deploy server-side applications that enhance your client-side projects.
Read more
Jun 2024
25h 56m