Welcome Guest, Not a member yet? Register   Sign In
Grabing Class and function name for use in a libraries
#2

[eluser]WanWizard[/eluser]
You mean the controller and method called thru the URI?

Code:
$controller = $this->uri->rsegment(1);
$method = $this->uri->rsegment(2);

Or in case you're intrested in the URI before routing

Code:
$controller = $this->uri->segment(1);
$method = $this->uri->segment(2);


Messages In This Thread
Grabing Class and function name for use in a libraries - by El Forum - 06-18-2010, 09:36 AM
Grabing Class and function name for use in a libraries - by El Forum - 06-18-2010, 09:42 AM
Grabing Class and function name for use in a libraries - by El Forum - 06-18-2010, 09:56 AM
Grabing Class and function name for use in a libraries - by El Forum - 06-18-2010, 09:56 AM
Grabing Class and function name for use in a libraries - by El Forum - 06-18-2010, 10:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB