title: Bootstrap pagination with CakePHP pagination helper
body: <p>I'm trying to get CakePHP's pagination helper to play nicely with bootstrap. That is, I want my pagination elements to look like bootstrap's but generated by CakePHP.</p>
  
  <p>At the moment I've got this on my view page:</p>
  
  <pre><code>&lt;?php
  echo $this-&gt;Paginator-&gt;numbers(array(
      'before' =&gt; '&lt;div class="pagination"&gt;&lt;ul&gt;',
      'separator' =&gt; '',
      'currentClass' =&gt; 'active',
      'tag' =&gt; 'li',
      'after' =&gt; '&lt;/ul&gt;&lt;/div&gt;'
  ));
  ?&gt;
  </code></pre>
  
  <p>Which produces the following markup:</p>
  
  <pre><code>&lt;div class="pagination"&gt;
      &lt;ul&gt;
          &lt;li class="active"&gt;1&lt;/li&gt;
          &lt;li&gt;&lt;a href="/test/posts/page:2"&gt;2&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="/test/posts/page:3"&gt;3&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The problem is, because the active page (1 in this case) doesn't have an <code>&lt;a&gt;</code> element in the <code>&lt;li&gt;</code> tag, it's not displaying correctly on the page (see here: <a href="http://i.imgur.com/OczPh.png">http://i.imgur.com/OczPh.png</a>).</p>
  
  <p>I can't seem to find anything on the Cookbook that mentions anything that would fix this.</p>
  
  <p>Can this even be fixed?</p>