Posts Tagged ‘controller’

CakePHP: How to call an action of another controller

by on Wednesday, July 24th, 2013


<?php
App::uses('AppController', 'Controller');
App::uses('EmployeesController', 'Controller');

class ReportingController extends AppController {

public function some(){

$Employees = new EmployeesController;
$Employees->constructClasses();

$Employees->areasAssigned();//areasAssigned function is in the Employees controller.

}

}

?>