1.

Record Nr.

UNINA9910458701303321

Autore

González Jorge

Titolo

CakePHP 2 application cookbook : over 60 useful recipes for rapid application development with the CakePHP framework / / Jorge González, James Watts ; cover image by Larry Masters

Pubbl/distr/stampa

Birmingham, England : , : Packt Publishing, , 2014

©2014

ISBN

1-78216-009-4

Descrizione fisica

1 online resource (346 p.)

Disciplina

005.1

Soggetti

Application software - Development

Web sites - Design

Electronic books.

Lingua di pubblicazione

Inglese

Formato

Materiale a stampa

Livello bibliografico

Monografia

Note generali

Includes index.

"Quick answers to common problems"--Cover.

Nota di contenuto

Cover; Copyright; Credits; Foreword; About the Authors; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; 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 Asset Compress 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

Sommario/riassunto

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.