Search code examples
twitter-bootstrapcodeignitergrocery-crud

bootstrap not working in grocery-crud


I'm using bootstrap to change the theme in grocery-crud but my code is not working.

My controller:

public function siswa(){
  $crud = new grocery_CRUD();
  $crud->set_theme('bootstrap');
  $crud->set_table('murid');
  $output = $crud->render();
  $this->load->view('tampilan',$output);
}

Please help me.

error message below

A PHP Error was encountered

Severity: Warning

Message: include(assets/grocery_crud/themes/bootstrap/config.php): failed to open stream: No such file or directory

Filename: libraries/Grocery_CRUD.php

Line Number: 2852

Backtrace:

File: C:\xampp\htdocs\grocerycrud\application\libraries\Grocery_CRUD.php Line: 2852 Function: _error_handler

File: C:\xampp\htdocs\grocerycrud\application\libraries\Grocery_CRUD.php Line: 2852 Function: setThemeBasics

File: C:\xampp\htdocs\grocerycrud\application\libraries\Grocery_CRUD.php Line: 4476 Function: setThemeBasics

File: C:\xampp\htdocs\grocerycrud\application\controllers\Coba.php Line: 19 Function: render

File: C:\xampp\htdocs\grocerycrud\index.php Line: 292 Function: require_once


Solution

  • just create config.php file in grocery_crud/themes/bootstrap and put blank