title: jQuery Tablesorter not work with CodeIgniter
body: <p>I downloaded <a href="http://tablesorter.com" rel="nofollow noreferrer">Tablesorter</a> and it works fine but if I use in codeigniter firebug says <code>c is undefined</code> on select different value from dropdown.</p>
  
  <p>I move all js resource files inclusion in views/template/header/ </p>
  
  <blockquote>
    <p><strong>header.php</strong></p>
  </blockquote>
  
  <pre><code>&lt;!-- Tablesorter --&gt;
      &lt;?php echo link_tag('tablesorter/themes/blue/style.css');?&gt;
      &lt;script type="text/javascript" src="&lt;?php echo base_url(); ?&gt;tablesorter/js/jquery.tablesorter.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="&lt;?php echo base_url(); ?&gt;tablesorter/js/jquery.tablesorter.pager.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
      $(function() {
          $("table")
              .tablesorter({widthFixed: true, widgets: ['zebra']})
              .tablesorterPager({container: $("#pager")});
      });
      &lt;/script&gt;
      &lt;!--// Tablesorter --&gt;
  </code></pre>
  
  <p>and the view where I use tablesorter is</p>
  
  <p>views/countries/index.php</p>
  
  <blockquote>
    <p><strong>index.php</strong></p>
  </blockquote>
  
  <pre><code>&lt;table cellspacing="1" class="tablesorter"&gt;
              &lt;thead&gt;
                  &lt;tr&gt;
                      &lt;th&gt;Country Name&lt;/th&gt;
                      &lt;th&gt;Action&lt;/th&gt;
                  &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;tfoot&gt;
                  &lt;tr&gt;
                      &lt;th&gt;Country Name&lt;/th&gt;
                      &lt;th&gt;Action&lt;/th&gt;
                  &lt;/tr&gt;
              &lt;/tfoot&gt;
              &lt;tbody&gt;
                  &lt;?php foreach ($countries as $key): ?&gt;
                  &lt;tr&gt;
                      &lt;td&gt;&lt;?php echo $key['countryName'];?&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;?php echo anchor("countries/edit/".$key['countryId'],"Edit")?&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;?php endforeach; ?&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
          &lt;div id="pager" class="pager"&gt;
              &lt;form&gt;
                  &lt;img src="&lt;?php echo base_url(); ?&gt;tablesorter/icons/first.png" class="first"/&gt; &lt;img src="&lt;?php echo base_url(); ?&gt;tablesorter/icons/prev.png" class="prev"/&gt;
                  &lt;input type="text" class="pagedisplay"/&gt;
                  &lt;img src="&lt;?php echo base_url(); ?&gt;tablesorter/icons/next.png" class="next"/&gt; &lt;img src="&lt;?php echo base_url(); ?&gt;tablesorter/icons/last.png" class="last"/&gt;
                  &lt;select class="pagesize"&gt;
                      &lt;option selected="selected"  value="10"&gt;10&lt;/option&gt;
                      &lt;option value="20"&gt;20&lt;/option&gt;
                      &lt;option value="30"&gt;30&lt;/option&gt;
                      &lt;option  value="40"&gt;40&lt;/option&gt;
                  &lt;/select&gt;
              &lt;/form&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>now after integrate with CodeIgniter it just work for ascending/descending but pagination does not work and firebug says <code>c is undefined</code></p>
  
  <p><img src="https://i.stack.imgur.com/RaMgS.png" alt="enter image description here"></p>