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



Theme © iAndrew 2016 - Forum software by © MyBB