Controller - rahendz/HMVCI GitHub Wiki

The Controller

In HMVCI, we'll give you 3 class extends instead of CI_Controller, which is Api_Contrller, Public_Controller, and Private_Controller. But again, without removing it, you could still using default extends, the CI_Controller, but you won't be able to use HMVCI feature completely. Such as, Admin Sidebar, which automatically collect the controller/class name that arranged as ordered list for sidebar purpose.

RESTful Extends

Using this extends and your engine could using restful api feature as server or client. The extend are stored in application/includes/controller but don't recommended for editing.

class Apps extends Api_Controller {
    public function __construct() {
        parent::__construct();
    }
    // the code
}

Public Extends

This extends are build for frontend purpose, don't hesitate to edit the extend file that stored in application/includes/controller

class Apps extends Public_Controller {
    public function __construct() {
        parent::__construct();
    }
    // the code
}

Private Extends

This extends are build backend purpose, you could put validation user for all backend controller into this extends either. Feel free to edit the extends, the file are stored in application/includes/controller.

class Apps extends Private_Controller {
    public function __construct() {
        parent::__construct();
    }
    // the code
}