Welcome Guest, Not a member yet? Register   Sign In
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



Theme © iAndrew 2016 - Forum software by © MyBB