Chapter 8. Working with Shells

In this chapter, we will cover:

  • Building and running a shell
  • Parsing command line parameters
  • Creating reusable shell tasks
  • Sending e-mails from shells
  • Creating Non-interactive tasks with the robot plugin

Introduction

One of the most powerful, yet unknown, features of CakePHP is its shell framework. It provides applications with all that is required for building command-line tools, which can be used to perform intensive tasks and any other type of non-interactive processing.

This chapter introduces the reader to CakePHP shells by starting with the process of building basic shells, and then moving on to more advanced features, such as sending e-mails and running controller actions from shells. It finishes by presenting the robot plugin, which offers a fully featured solution for scheduling and running tasks.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.9.124