• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unlikely question...

#2
[eluser]AoiKage[/eluser]
If you have something like "www.yoursite.com/admin" or "www.yoursite.com/index.php/admin" in the url you can just grab the controller name using the URI Class:

Code:
if ($this->uri->segment(1) == 'admin')
{
    // load admin menu
}
else
{
    // load main menu
}

The URI class is ALWAYS autoloaded so you don't have to load anything to make this work Smile

I hope this solved your problem Wink


Messages In This Thread
Unlikely question... - by El Forum - 02-27-2011, 02:43 AM
Unlikely question... - by El Forum - 02-27-2011, 04:33 AM
Unlikely question... - by El Forum - 02-27-2011, 12:18 PM
Unlikely question... - by El Forum - 02-27-2011, 01:02 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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