Cover image for CakePHP 2 Application Cookbook.
CakePHP 2 Application Cookbook.
Title:
CakePHP 2 Application Cookbook.
Author:
Watts, James.
ISBN:
9781782160090
Personal Author:
Physical Description:
1 online resource (384 pages)
Contents:
CakePHP 2 Application Cookbook -- Table of Contents -- CakePHP 2 Application Cookbook -- Credits -- Foreword -- About the Authors -- About the Reviewer -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. Lightning Introduction -- Introduction -- Listing and viewing records -- Getting ready -- How to do it... -- How it works... -- See also -- Adding and editing records -- Getting ready -- How to do it... -- How it works... -- See also -- Deleting records -- Getting ready -- How to do it... -- How it works... -- See also -- Adding a login -- Getting ready -- How to do it... -- How it works... -- See also -- Including a plugin -- Getting ready -- How to do it... -- How it works... -- See also -- 2. Advanced Routing -- Introduction -- Adding a prefix -- Getting ready -- How to do it... -- How it works... -- Handling languages -- Getting ready -- How to do it... -- How it works... -- See also -- Custom route class -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Dispatch filter -- Getting ready -- How to do it... -- How it works... -- There's more… -- 3. HTTP Negotiation -- Introduction -- Parsing extensions -- Getting ready -- How to do it... -- How it works... -- See also -- Processing Ajax requests -- Getting ready -- How to do it... -- How it works... -- See also -- Building a response -- Getting ready -- How it works... -- Uploading a file -- Getting ready -- How to do it... -- How it works... -- There's more… -- Using a detector -- Getting ready -- How to do it... -- How it works... -- See also -- Working with cookies.

Getting ready -- How to do it... -- How it works... -- Cache control -- Getting ready -- How to do it... -- How it works... -- See also -- Error handling -- Getting ready -- How to do it... -- How it works... -- See also -- 4. API Strategies -- Introduction -- RESTful resources -- Getting ready -- How to do it... -- How it works... -- See also -- Exposing a web service -- Getting ready -- How to do it... -- How it works... -- See also -- Consuming a service -- Getting ready -- How to do it... -- How it works... -- See also -- Authentication API -- Getting ready -- How to do it... -- How it works... -- See also -- API versioning -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- 5. Using Authentication -- Introduction -- The HTTP authentication -- Getting ready -- How to do it... -- How it works... -- See also -- Custom authorize class -- Getting ready -- How to do it... -- How it works... -- See also -- Facebook authentication -- Getting ready -- How to do it... -- How it works... -- See also -- Custom RBAC -- Getting ready -- How to do it... -- How it works... -- See also -- Working with ACL -- Getting ready -- How to do it... -- How it works... -- See also -- 6. Model Layer -- Introduction -- Has and belongs to many (HABTM) -- Getting ready -- How to do it... -- How it works... -- See also -- Joining through -- Getting ready -- How to do it... -- How it works... -- See also -- Containing models -- Getting ready -- How to do it... -- How it works... -- See also -- Custom finders -- Getting ready -- How to do it... -- How it works... -- See also -- On-the-fly associations -- Getting ready -- How to do it... -- How it works... -- See also -- Using transactions -- Getting ready -- How to do it... -- How it works... -- See also -- 7. Search and Pagination -- Introduction -- Pagination -- Getting ready.

How to do it... -- How it works... -- See also -- Basic search and filter -- Getting ready -- How to do it... -- How it works… -- See also -- The Search plugin -- Getting ready -- How to do it... -- How it works... -- See also -- Advanced search -- Getting ready -- How to do it... -- How it works... -- See also -- 8. Events System -- Introduction -- Listeners and subscribers -- Getting ready -- How to do it... -- How it works... -- See also -- Event-driven process -- Getting ready -- How to do it... -- How it works... -- See also -- Event stacking -- Getting ready -- How to do it... -- How it works... -- See also -- Managing event priorities -- Getting ready -- How to do it... -- How it works... -- See also -- 9. Creating Shells -- Introduction -- Console API -- How to do it... -- How it works... -- See also -- Import parser -- Getting ready -- How to do it... -- How it works... -- See also -- Running cron shells -- Getting ready -- How to do it... -- How it works... -- See also -- Using the I18n shell -- Getting ready -- How to do it... -- How it works... -- See also -- 10. View Templates -- Introduction -- Using blocks -- Getting ready -- How to do it... -- How it works... -- Building an XML view -- Getting ready -- How to do it... -- How it works... -- See also -- Generating a PDF -- Getting ready -- How to do it... -- How it works... -- Writing some PDF content to a file -- See also -- Translations -- Getting ready -- How to do it... -- How it works -- There's more... -- See also -- View caching -- Getting ready -- How to do it... -- How it works... -- See also -- The AssetCompress plugin -- Getting ready -- How to do it... -- How it works... -- See also -- 11. Unit Tests -- Introduction -- Dependency Injection -- Getting ready -- How to do it... -- How it works... -- See also -- Creating a fixture -- Getting ready -- How to do it...

How it works... -- Mock objects -- Getting ready -- How to do it... -- How it works... -- See also -- Stub method configuration -- Getting ready -- How to do it... -- How it works... -- See also -- Model unit testing -- Getting ready -- How to do it… -- How it works… -- See also -- 12. Migrations -- Introduction -- Schema handling -- Getting ready -- How to do it... -- How it works... -- See also -- Syncing changes -- Getting ready -- How to do it... -- How it works... -- See also -- The Migrations plugin -- Getting ready -- How to do it... -- How it works... -- See also -- Injecting data -- Getting ready -- How to do it... -- How it works... -- See also -- Index.
Abstract:
If you are a CakePHP developer looking to ease the burden of development, then this book is for you. As a headfirst dive into the framework, this collection of recipes will help you get the most out of CakePHP, and get your applications baked in no time. Even if you're not familiar with the framework, we'll take you from basic CRUD building to useful solutions that will aid in getting the job done quickly and efficiently.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Added Author:
Electronic Access:
Click to View
Holds: Copies: