![]() |
base_url not passsing the values - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: base_url not passsing the values (/showthread.php?tid=50537) |
base_url not passsing the values - El Forum - 03-29-2012 [eluser]mady[/eluser] Hi, I have a function where i want to pass the values for searching and pagination, but its not working This is my code Code: $this->load->library('pagination'); base_url not passsing the values - El Forum - 03-29-2012 [eluser]csotelo[/eluser] try Code: $config["base_url"] = site_url("movies/movies_view/$query_id/$sort_by/$sort_order"); //double quotes or Code: $config["base_url"] = site_url("movies/movies_view/").$query_id."/".$sort_by."/".$sort_order; base_url not passsing the values - El Forum - 03-29-2012 [eluser]mady[/eluser] oh no, completely mess up! thank you dude. base_url not passsing the values - El Forum - 03-30-2012 [eluser]solid9[/eluser] Everything can be done in the method/function alone function searching_test('$keyword, $query_id, $sort_by, $sort_order) { //capture data here... //codes to configure the pagination here... //codes to call the model etc... //codes here, etc.. etc... etc... //codes to display your view here... } Hope you get the idea. |