Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 11th, 2012  |  syntax: None  |  size: 0.43 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to set class name to <a> tag in CodeIgniter pagination
  2. <a href="http://example.com/pages/3">3</a>
  3.        
  4. <a href="http://example.com/pages/3" class="number">3</a>
  5.        
  6. $config['anchor_class'] = 'class="number" ';
  7.        
  8. $this->pagination->initialize($config);
  9.        
  10. $config['anchor_class'] = 'class="number"';
  11. $this->pagination->initialize($config);
  12.        
  13. $config['anchor_class'] = 'class="number"';
  14.        
  15. $config['anchor_class'] = 'number';