[eluser]Ebot Ndip-Agbor[/eluser]
What I want to do is get the controller and controller function that called the library i am using. Something like this
Code:
class Some_controller extends Controller {
function some_function()
{
$this->load->some_library();
}
}
I want to get some_controller/some_function within the library to use for a redirect.
N.B: Didnt want to use
Code:
$this->uri->segment()
incase the controller in question is set as default controller in the routes file.
Thought of passing it as a parameter to the library :roll:. Need some insight please.