Skip to content
mariano edited this page Sep 13, 2010 · 1 revision

The robot plugin provides an easy way to deal with non interactive tasks. It does so while serving two main purposes:

  • Allow the execution of any CakePHP action in our application from the command line, thus making our application CRON / command line friendly. This is ideal for repetitive tasks that don’t require user interaction (such as generating nightly data reports.)
  • Give the ability to schedule the execution of any CakePHP action in our application for later (or instant, non interactive) processing. This is ideal for tasks that may take processing time, and don’t require user interaction (such as sending an email.)

Installation

Copy the robot/ plugin to your app/plugins folder. Once we’ve done that, we need to import the DB tables required by the plugin. Assuming that your database is myapp do:

$ cat app/plugins/robot/config/sql/robot.sql | mysql -u user -p myapp
Clone this wiki locally