public $components = array('RequestHandler');
public function index() {
+ App::import('Controller', 'Configurations');
+ $configurationsController = new ConfigurationsController;
+
+ // GETTING CONFIGURATION
+ $configuration = $configurationsController->Configuration->find('first');
+
+ // GETTING CUSTOMERS
$customers = $this->Customer->find('all');
$this->set(array(
'customers' => $customers,
'_serialize' => array('customers')
));
+ $this->set('configuration', $configuration);
}
}