load->database(); $this->load->helper('url'); $this->load->library('grocery_CRUD'); } public function _example_output($output = null) { $this->load->view('example.php',(array)$output); } public function offices() { $output = $this->grocery_crud->render(); $this->_example_output($output); } public function index() { $this->_example_output((object)array('output' => '' , 'js_files' => array() , 'css_files' => array())); } public function deptos() { $crud = new grocery_CRUD(); $crud->set_table('datos_x_depto'); $output = $crud->render(); $this->_example_output($output); } public function distribuidoras() { $crud = new grocery_CRUD(); $crud->set_table('distribuidoras'); $output = $crud->render(); $this->_example_output($output); } public function datospanel() { $crud = new grocery_CRUD(); $crud->set_table('datosPanel'); $output = $crud->render(); $this->_example_output($output); } }