My controller
function multiupload()
{
$this->load->library('Image_CRUD');
$image_crud = new Image_CRUD();
$image_crud->set_table('images');
$image_crud->set_primary_key_field('id');
$image_crud->set_url_field('url');
$image_crud->set_title_field('title');
$image_crud->set_relation_field('id_island')
->set_ordering_field('priority')
->set_image_path('assets/uploads/img');
echo '<h2>Upload Photo</h2>';
$output = $image_crud->render();
$this->_upload_output($output);
}
function _upload_output($output = null)
{
$this->data['crud'] =(array)$output;
$this->db->where('island.id_island',$this->uri->segment(3));
$this->data['category'] = $this->db->get('island');
$this->load->view('upload_view.php',$this->data);
}
My View
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<?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; ?>
</head>
<body>
<a href='<?php echo site_url('main_adm/island_management')?>'><b> <<-- back </b></a>
<br><br>
<?if($category):foreach($category as $item):?>
<?=$itemp['island_name']?>
<?endforeach; endif;?>
<div>
<?=$crud['output']; ?>
</div>
</body>
</html>
where is my mistake? can you help vict?