Using pagination with query string for a search form which has the method set to get in codeigniter
I can't believe this, I spent hours searching the web for a solution !It was always with me.I should have opened the pagination library and viewed its content before I posted this question.Just one line and problem solved.
I added the following line in the index method.$config['first_url'] = '/index.php/search/index/?q='.$q;