[eluser]the_unforgiven[/eluser]
My full controller
Code:
$total = $this->client_model->client_count();
$per_pg = 20;
$offset = $this->uri->segment(3);
$config['base_url'] = $data['base'].'/admin/clientlist/';
$config['total_rows'] = $total;
$config['per_page'] = $per_pg;
$config['full_tag_open'] = '<div id="pagination">';
$config['full_tag_close'] = '</div>';
$this->pagination->initialize($config);
$data['pagination'] = $this->pagination->create_links();
$data['total_rows'] = $config['total_rows'];
$data['show_from'] = $offset + 1;
$data['show_to'] = $offset + $per_pg;
if($data['show_to'] > $total) {
$data['show_to'] = $total;
}
$data['query'] = $this->client_model->get_all($per_pg,$offset);
$this->template
->enable_parser(TRUE)
->title(lang('client_title'));
$this->template
->set_layout('default')
->build('admin/clientlist', $data);
So now i need to know how to get in my view file, if the template is set to clientlist for example so this, else show this...