Here is the code controller code .... I want to paas $output variable through a array in view file .
function test()
{
$crud = new grocery_CRUD();
$crud->set_table('tickets');
$crud->set_subject('Order');
$crud->unset_delete();
$output = $crud->render();
$data = array(
'title' => "Unsolved Tickets ! ",
'page_heading' => "Unsolved tickets ! ",
'tickets' => $this->admin_model->load_unsolved_tickets(),
'dir' => FOLDER_UNSOLVED_TICKETS,
'page' =>'index.php',
'details_url' => FOLDER_ADMIN.'/ticket_details' ,
'output' => $output
);
$this->load->data('example' , $data);
}
if $output varriable passing through via array then what will be view file code to see the datatable or grid .
what change will appear in view file code ,like
<?php
foreach($css_files as $file): ?>
<link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
<?php endforeach; ?>
<?php foreach($js_files as $file): ?>
<script src="<?php echo $file; ?>"></script>
<?php endforeach; ?>
<?php echo $output;