Posted By

justinseiter on 04/26/09


Tagged

php uri codeigniter


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

vali29
jatap


Add Class via URI - CodeIgniter


 / Published in: PHP
 

  1. <?$uri = $this->uri->rsegment_array()?>
  2. <?=($uri[1] == 'main') ? 'class="main sel"' : 'class="main"'?>

Report this snippet  

You need to login to post a comment.