public function category(){
$this->load->library('pagination');
$c = $this->uri->segment(3);
$config['base_url'] = site_url("blog/category/$c");
$config['total_rows'] = $this->article->get_article_category($c);
//exit($config['total_rows']);
$config['per_page'] = 2;
$config['uir_segment'] = 4;
$config['num_links'] = 3;
$config['full_tag_open'] = '<p>';
$config['full_tag_close'] = '</p>';
//$config['page_query_string'] = TRUE;
$this->pagination->initialize($config);
$data['category'] = $this->category->get_by($c);
$data['art_num'] = $config['total_rows'];
$data['segment'] = $this->uri->segment(4,0);
$data['article'] = $this->article->get_article_by_category($c,$config['per_page'],$this->uri->segment(4,0));
$data['pagelinks'] = $this->pagination->create_links();
$this->load->view('category',$data)