How to get the current controller name in an autoloaded model? |
[eluser]Unknown[/eluser]
Hello, How can I get the current controller name in an autoloaded model? Thanks.
[eluser]pistolPete[/eluser]
You could either use the uri functions: http://ellislab.com/codeigniter/user-gui...s/uri.html Code: // if you use no routing: Alternatively you can use this property: Code: $this->router->class |
Welcome Guest, Not a member yet? Register Sign In |