Pagination parameters - page_query_string?

Right now the pagination is doing like this &page_page=2 to the URL's, but i'd like it to just do /2 - I've set page_query_string to false for the pagination config, but that doesn't seem to do anything. I have my site setup to use query strings for google analytics purposes, but everything else uses the url segments...


//Count Total Record From Table Name = Same as Class Name

        $config['base_url'] = base_url().$this->controller_name."/index/";
           /* don't ignore segments Change According your req.*/
        $config['uri_segment'] = 4;
        $config['total_rows'] = $data['totalrecords'];
        $config['full_tag_open'] = '<div class="pagination"><div class="icon pagination-ico"></div>';
        $config['full_tag_close'] = '</div>';
        $config['cur_tag_open'] ='<span class="current">';
        $model = $this->class_name.'_mod';
        $data['dloop'] = $this->$model->getList($config['per_page'],(int)$this->uri->segment(4));


function getList($num, $offset){
          $sql_q="SELECT  "Fields"
                          "Your Conditions"
                  Limit ?,?";
           $query = $this->db->query($sql_q,array($offset,$num));
            //Free Result
            return $iret;


&lt;?php echo $this->pagination->create_links(); ?&gt;

         //Create List by using foreach   on $dloop

note: Some Functions Are created by me , just for understand,
warning : don't copy paste without understand..(may not work)

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.