Create OtherController :
// app/controllers/other_controller.php class OtherController extends AppController { public function index() { // do something } }
and specify the root path in app/config/routes.php to it:
Router::connect('/', array('controller' => 'other', 'action' => 'index'));
source share