• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Navigation - highlight current menu tab

#4
[eluser]cinewbie81[/eluser]
$this->uri->segment(1) will get you the current controller name ..

for eg:

url = https://localhost/backup/listing

$this->uri->segment(1) will return u the value 'backup' ..
highlight this 'backup' module use the 1st segment of ur url ..
but i believe there's a better way using CSS ??


Messages In This Thread
Navigation - highlight current menu tab - by El Forum - 10-14-2007, 09:48 PM
Navigation - highlight current menu tab - by El Forum - 10-14-2007, 10:50 PM
Navigation - highlight current menu tab - by El Forum - 10-15-2007, 12:32 AM
Navigation - highlight current menu tab - by El Forum - 10-15-2007, 12:56 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.