Welcome Guest, Not a member yet? Register   Sign In
Get current conroller/controller-function inside a library
#1

[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.


Messages In This Thread
Get current conroller/controller-function inside a library - by El Forum - 03-10-2008, 03:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB