Welcome Guest, Not a member yet? Register   Sign In
Use Pagination class
#1

[eluser]StaMiNa[/eluser]
Hello,
i need some help to use pagination in special situation.
I have a method in "ingatlanok" class:
Code:
...
public function category($cat='', $page='')
    {
...
    $this->load->library('pagination');
    $config['base_url'] = secure_base_url() . 'ingatlanok/category/'.$cat;
...
The pagination link appeared not correct: (example: www.example.com/ingatlanok/category/7)
<< 1 2

At simple method, pagination works correct: public function category($page='')

What am i doing wrong?
#2

[eluser]Jamie Rumbelow[/eluser]
Hi StaMiNa,

Could you explain your error a little clearer?

Thanks,

Jamie
#3

[eluser]StaMiNa[/eluser]
Wow, i found a solution is another forum thread:
http://ellislab.com/forums/viewthread/133372/

The problem is i miss some pagination config:
Code:
$config['uri_segment'] = 4;




Theme © iAndrew 2016 - Forum software by © MyBB