I was trying to pass some extra values of data on grocery crud view when I came up with the following solution.
This is my controller :
$crud = new grocery_CRUD();
$crud->set_table('tickets');
$crud->set_subject('Order');
$output = $crud->render();
$data = array(
'title' => "Unsolved Tickets ! ",
'page_heading' => "Unsolved tickets ! ",
'output' => $output,
);
$this->load->view('example',$data);
and this is my view file :
<?php
foreach($output->css_files as $file): ?>
<link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
<?php endforeach; ?>
<?php foreach($output->js_files as $file): ?>
<script src="<?php echo $file; ?>"></script>
<?php endforeach; ?>
<?php echo $output->output; ?>