[SOLVED]Pagination Problem! |
[eluser]husni[/eluser]
hello..i am trying to use pagination class.. i have seen the codeigniter tutorials but may be lack of understanding about the coding.. how to put the ['base_url'] actually? my browser only show the number of pages and the link.. when i click the number..it will be redirect to my another page.. can anyone help me??? this is the only thing shown in my browser.. Quote:1
[eluser]husni[/eluser]
[quote author="maria clara" date="1264601377"]can you post your code for debugging?[/quote] hi..i found code for pagination in devshed forum.. the problem still the same..the link is appeared..but when i click on the link,it will be redirect to the first page only.. this is the model.. Quote:function getAllReport() this is the controller file Quote:<?php this is the view file.. Quote:<html> can you help me?please.. i provided the view in my browser.. when i click number 2..it still in the page 1..
[eluser]maria clara[/eluser]
do you have an offset value for your pagination??
[eluser]maria clara[/eluser]
try this in your model: Code: function getAllReport($num = NULL, $offset = NULL) and put this in your controller: Code: function display($row=0){
[eluser]maria clara[/eluser]
you have to put this before your Code: .... Passing URI segments to your functions
[eluser]husni[/eluser]
i have put the codes you gave me.. but it still the same.. what is the problem??
[eluser]husni[/eluser]
[quote author="maria clara" date="1264669694"]try this in your model: Code: function getAllReport($num = NULL, $offset = NULL) and put this in your controller: Code: function display($row=0){ Code: $data['query'] = $this->Helpdesk_model->get_events(5,$offset); do i need to echo query?? the get_events function is not in my model..it is getAllReport($num = NULL, $offset = NULL) right??
[eluser]maria clara[/eluser]
i made a mistake change it to this: Code: if (isset($page) && is_int($page)) Also try taking this line out of your controller: Code: $config['uri_segment'] = '3'; do they satisfy now??
[eluser]maria clara[/eluser]
change the get_events(5,$offset) to getAllReport(5,$offset) |
Welcome Guest, Not a member yet? Register Sign In |