Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying CakePHP 2 Application Cookbook
  • Table Of Contents Toc
CakePHP 2 Application Cookbook

CakePHP 2 Application Cookbook - Third Edition

By : Watts
4.2 (6)
close
close
CakePHP 2 Application Cookbook

CakePHP 2 Application Cookbook

4.2 (6)
By: Watts

Overview of this book

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.
Table of Contents (14 chapters)
close
close
13
Index

Event stacking


Once we have the events in place, we could start thinking about dispatching events to an event queue to let another one process, possibly in a different server, pick up the payload, and process the task. This is a useful technique to move your background processing away from the runtime process, thus giving faster response times and allowing resource-intensive jobs to be queued and executed by an optimized server.

In this recipe, we're going to use the CakeResque plugin to create a job queue, using Redis and a worker to process your tasks.

Getting ready

First, make sure you have Redis 2.2 or later installed. Check the detailed setup instructions in the Redis documentation at http://redis.io/.

Then, download and install the CakeResque plugin. We'll do the setup using git and Composer, but if you're not using git, you can simply download the ZIP file, using the following command, and place the contents of the plugin in a folder named app/Plugin/CakeResque/:

$ git submodule add git...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
CakePHP 2 Application Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon