Welcome Guest, Not a member yet? Register   Sign In
Direct controller access
#1

[eluser]marcoslavorato[/eluser]
Hi for all.

I already use the Codeigniter, but now I have a question. Can I a direct access to controller and your functions? Now, I access by URL, but i see many examples that access the controller directly.


Thanks,
Marcos
#2

[eluser]Colin Williams[/eluser]
You can get the controller object anywhere with get_instance()

Code:
$ci =& get_instance();
$ci->call_function()




Theme © iAndrew 2016 - Forum software by © MyBB