public function tags($task = "list")
{
$header['title'] = 'Tag List';
$this->load->view("template/header", $header);
$this->load->view("template/dashboardNavView");
$builder ['task'] = $task;
if($task == "list" || $task == "")
{
$pager['base_url'] = "/dashboard/tags/";
$pager['total_rows'] = $this->db->count_all('tags');
$pager['per_page'] = 4;
$pager["uri_segment"] = 3;
$this->pagination->initialize($pager);
$page = $this->uri->segment(3);
$builder['tags'] = $this->db->order_by('id', 'DESC')->limit($pager['per_page'], $page)->get('tags')->result();
$builder['pager'] = $this->pagination->create_links();
}
$this->load->view("tags/TagsBuilderView", $builder);
$this->load->view("template/footer");
}