<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 10 Jun 2026 11:07:16 +0000</lastBuildDate>
    <item>
      <title>(PHP) Codeigniter Pagination class with bullets and images in the navigation - stevendobbelaere</title>
      <link>https://snipplr.com/view/35793/codeigniter-pagination-class-with-bullets-and-images-in-the-navigation</link>
      <description>&lt;p&gt;The standard codeigniter pagination class doesn't allow you to use images in the pagination navigation. I altered the default pagination class a bit. Now you can add the path to the images for the previous link, next link, digit and active digit in extra config parameters like so: &#13;
&#13;
$this-&gt;load-&gt;library('pagination');&#13;
$config['base_url'] = base_url();&#13;
$config['total_rows'] = $this-&gt;your_model-&gt;select_items();&#13;
$config['per_page'] = '4';&#13;
$config['num_links'] = 10;&#13;
$config['full_tag_open'] = '';&#13;
$config['full_tag_close'] = '&lt;/p&gt;';	&#13;
$config['cur_page'] = $this-&gt;uri-&gt;segment(4);	&#13;
//$config['cur_tag_open'] = "&lt;img&gt;";&#13;
//$config['cur_tag_close'] = '';&#13;
$config['prev_link'] = "&lt;img&gt;";&#13;
$config['next_link'] = "&lt;img&gt;";&#13;
$config['digit'] = "&lt;img&gt;";&#13;
$config['digit_active'] = "&lt;img&gt;";&#13;
		   	&#13;
$this-&gt;pagination-&gt;initialize($config);&#13;
$this-&gt;mysmarty-&gt;assign("PAGINATION", $this-&gt;pagination-&gt;create_links());&lt;/p&gt;</description>
      <pubDate>Thu, 17 Jun 2010 01:12:56 UTC</pubDate>
      <guid>https://snipplr.com/view/35793/codeigniter-pagination-class-with-bullets-and-images-in-the-navigation</guid>
    </item>
  </channel>
</rss>
