Getting Started

Table of Contents

Creating Your Driver File
Assigning the Driver to Clients
Accessing the Driver Through Your Web Site

Each backend request driver is a Recite CMS driver that lives in the ./lib/drivers/backend/requests directory.

Creating Your Driver File

The driver file is a PHP class with the filename driver.php which extends from the Module_Backend_Driver_Abstract class.

The class in this file must follow standard Recite CMS driver naming conventions. For example, if your driver is called weather, your driver.php file would have the path ./lib/drivers/backend/requests/weather/driver.php.

In this example, the file would define a single class called Driver_backend_requests_weather_driver.

The only mandatory method you must implement is the __toString(), which must return a brief description of what the request handler does.

Example 2.1. A sample container (driver.php)

    class Driver_backend_requests_weather_controller extends Module_Backend_Driver_Abstract
        public function __toString()
            return 'Return weather data via JSON';
        /* other code will go here */