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
Introduction
Adding a prefix
Handling languages
Custom route class
Dispatch filter
Chapter 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
Chapter 4. API Strategies
Introduction
RESTful resources
Exposing a web service
Consuming a service
Authentication API
API versioning
Chapter 5. Using Authentication
Introduction
The HTTP authentication
Custom authorize class
Facebook authentication
Custom RBAC
Working with ACL
Chapter 6. Model Layer
Introduction
Has and belongs to many (HABTM)
Joining through
Containing models
Custom finders
On-the-fly associations
Using transactions
Chapter 7. Search and Pagination
Introduction
Pagination
Basic search and filter
The Search plugin
Advanced search
Chapter 8. Events System
Introduction
Listeners and subscribers
Event-driven process
Event stacking
Managing event priorities
Chapter 9. Creating Shells
Introduction
Console API
Import parser
Running cron shells
Using the I18n shell
Chapter 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
Chapter 11. Unit Tests
Introduction
Dependency Injection
Creating a fixture
Mock objects
Stub method configuration
Model unit testing
Chapter 12. Migrations
Introduction
Schema handling
Syncing changes
The Migrations plugin
Injecting data
Index
更新时间:2021-04-02 10:06:56