Welcome Guest, Not a member yet? Register   Sign In
no First and Last links in the set of links created by pagination lib
#1

[eluser]meteor[/eluser]
I have used the pagination lib twice on my pages but neither in the first nor in the second case I got the First and the Last link... My config seems to be correct,I studied documentation provided carefully but still cannot find why those two pieces of output code are not rendered: my config (loaded in my controller method) looks like this:
Code:
$config['base_url'] = base_url().'/home/gems';
          $config['per_page'] = 5;
          $config['num_links'] = 4;
          $config['uri_segment'] = 3;
          $config['full_tag_open'] = '<p>';
          $config['full_tag_close'] = '</p>';
          $config['first_link'] = 'First Item';
          $config['first_tag_open'] = '<p>';
          $config['first_tag_close'] = '</p>';
          $config['last_link'] = 'Last item';
          $config['last_tag_open'] = '<p>';
          $config['last_tag_close'] = '</p>';
          $g = new Gem();
          $config['total_rows'] = $g->countGems();

Any ideas as to what to change to get full set of links which contain both the Last and the First link.
Thanks for you reply
regards
#2

[eluser]w0bbes[/eluser]
Code:
$config['last_tag_close'] = '</p>;
to
Code:
$config['last_tag_close'] = '</p>';

maybe?
#3

[eluser]meteor[/eluser]
That lacking quote is lacking just on this forum , in my code it is present ... So, still no idea what to change ...




Theme © iAndrew 2016 - Forum software by © MyBB