更新时间:2021-04-02 10:06:56
coverpage
CakePHP 2 Application Cookbook
Credits
Foreword
About the Authors
About the Reviewer
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Lightning Introduction
Introduction
Listing and viewing records
Adding and editing records
Deleting records
Adding a login
Including a plugin
Chapter 2. Advanced Routing
Adding a prefix
Handling languages
Custom route class
Dispatch filter
Chapter 3. HTTP Negotiation
Parsing extensions
Processing Ajax requests
Building a response
Uploading a file
Using a detector
Working with cookies
Cache control
Error handling
Chapter 4. API Strategies
RESTful resources
Exposing a web service
Consuming a service
Authentication API
API versioning
Chapter 5. Using Authentication
The HTTP authentication
Custom authorize class
Facebook authentication
Custom RBAC
Working with ACL
Chapter 6. Model Layer
Has and belongs to many (HABTM)
Joining through
Containing models
Custom finders
On-the-fly associations
Using transactions
Chapter 7. Search and Pagination
Pagination
Basic search and filter
The Search plugin
Advanced search
Chapter 8. Events System
Listeners and subscribers
Event-driven process
Event stacking
Managing event priorities
Chapter 9. Creating Shells
Console API
Import parser
Running cron shells
Using the I18n shell
Chapter 10. View Templates
Using blocks
Building an XML view
Generating a PDF
Writing some PDF content to a file
Translations
View caching
The AssetCompress plugin
Chapter 11. Unit Tests
Dependency Injection
Creating a fixture
Mock objects
Stub method configuration
Model unit testing
Chapter 12. Migrations
Schema handling
Syncing changes
The Migrations plugin
Injecting data