JQuery Pagination support uri segment 4?? - 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: JQuery Pagination support uri segment 4?? (/showthread.php?tid=49465) Pages:
1
2
|
JQuery Pagination support uri segment 4?? - El Forum - 02-20-2012 [eluser]Krasser[/eluser] Im using folder to manage my controllers: Controller |_ customer |_ customers.php Here is my code: customers.php Code: private $row_limit = 2; Code: $this->load->model(array('customer/mCustomer')); // Contructor Code: public function index() Code: public function ajax_page($offset = 0) Here is my model: mCustomer.php Code: function get_customers($limit = 0, $offset = 0, $search_customer_name = '') Im have modified Tohin's Jquery Pagination: Jquery_pagination.php Code: var $uri_segment = 4; // Im only change 3 to 4 THE PROBLEM IS I CAN CORRECT VISIT IN FIRST TIME, TABLE AND PAGINATION IS DISPLAY CORRECT. BUT WHEN I CLICK TO SECOND PAGE, TABLE & PAGINATION IS NOT HERE, BLANK DISPLAY!! JQuery Pagination support uri segment 4?? - El Forum - 02-20-2012 [eluser]InsiteFX[/eluser] No need to change it in the class just pass it in the config. Code: $config['uri_segment'] = 4; JQuery Pagination support uri segment 4?? - El Forum - 02-20-2012 [eluser]Krasser[/eluser] Im change back to 4 already. Thank. Here is more detials (Refer to attach): a. First time visit b. When Click to Page 2 c FireBug Catch JQuery Pagination support uri segment 4?? - El Forum - 02-20-2012 [eluser]Krasser[/eluser] C. HERE FireBug Catch JQuery Pagination support uri segment 4?? - El Forum - 02-20-2012 [eluser]aquary[/eluser] Check what was the URL called on the second time. I"m wondering about this: Code: $config['base_url'] = site_url('server/customer/ajax_page/'); Isn't your controller customers inside customer folder? should the url be customer/customers/ajax_page instead? JQuery Pagination support uri segment 4?? - El Forum - 02-20-2012 [eluser]Krasser[/eluser] Thank you for reply and helping! I'm FOUND it! Code: I have enable GZip page output! Now I'm Disable it work again! WHY??? JQuery Pagination support uri segment 4?? - El Forum - 02-20-2012 [eluser]msAdele[/eluser] Thank you for the information, everyone! JQuery Pagination support uri segment 4?? - El Forum - 02-20-2012 [eluser]InsiteFX[/eluser] Make sure you also change the Constructor from CI_Pagination to __construct ! JQuery Pagination support uri segment 4?? - El Forum - 02-20-2012 [eluser]Krasser[/eluser] [quote author="InsiteFX" date="1329799871"]Make sure you also change the Constructor from CI_Pagination to __construct ![/quote] inside JQuery_Pagination Model? JQuery Pagination support uri segment 4?? - El Forum - 02-20-2012 [eluser]InsiteFX[/eluser] Inside the jQuery_Pagination Class Library! |