[eluser]Skoobi[/eluser]
so if im following id have it like this in the
Code:
class Gallery extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->library('image_CRUD');
}
function _example_output($output = null)
{
$this->data['gallery'] = $output;
$this->data['subview'] = "admin/gallery/index";
$this->load->view('admin/_layout_main', $this->data);
var_dump($output);
}
function index()
{
$this->_example_output((object)array('output' => '' , 'js_files' => array() , 'css_files' => array()));
}
function view()
{
$image_crud = new image_CRUD();
$image_crud->set_primary_key_field('id');
$image_crud->set_url_field('url');
$image_crud->set_table('example_1');
$image_crud->set_image_path('assets/uploads');
$output = $image_crud->render();
$this->_example_output($output);
}
}