Controller Structure
Every controller generated by code builder will have same structure and code
Controller code
class ModuleController extends BaseController { protected $layout = "layouts.main"; protected $data = array(); public $module = 'pages'; static $per_page = '10'; public function __construct() { parent::__construct(); } public function getIndex() { /* Handle table grid , sort order , pagination and search proccess */ } function getAdd( $id = null) { /* Handle form add or edit */ } function getShow( $id = null) { /* Handle view detail*/ } function postSave( $id =0) { /* Handle post form from add or edit */ } public function postDestroy() { /* Handle multiple delete */ } }