Pagination code is not work in codeigniter
<p>Pagination code is not work in codeigniter it will go to next page but nothing can be display on the page??</p>

<p><b>Controller</b> code is like this</p>

<pre><code>public function search_by_keywords()
{
     //library added
     $this-&gt;load-&gt;library('pagination');
     //model loaded
     $this-&gt;load-&gt;model('free/search_resource_model');
     $config["base_url"] = base_url().'free/keyword/search_by_keywords';
     $config["total_rows"] = 5;
     $config["per_page"] = 4;
     $config['uri_segment'] = 4; 
     $config['use_page_numbers'] = TRUE;
     $this-&gt;pagination-&gt;initialize($config);
     $page =$this-&gt;uri-&gt;segment(4);
     $data["reso_list"] =   $this-&gt;search_resource_model-&gt;serch_with_kw($config["per_page"], $page);
     //create link 
     $data["links"] = $this-&gt;pagination-&gt;create_links();
     $data["title"] = 'Search Resources by Keywords ';
}
</code></pre>