Assigning the Driver to Clients

Unlike most other drivers in Recite CMS, backend request drivers are not assigned to clients. Typically these drivers will be related to an existing module (defined by the getDependentModules() method). Whether or not a client has access to a backend request driver is based upon their permissions for the dependent modules.

For instance, if we have a module called weather, we would define getDependentModules() as follows.

Example 2.2. Defining driver dependencies (driver.php)

<?php
    class Driver_backend_requests_weather_controller extends Module_Backend_Driver_Abstract
    {
        public function getDependentModules()
        {
            return array('weather');
        }
        
        /* other code will go here */
    }
?>