Welcome Guest, Not a member yet? Register   Sign In
Calling controller methods from inside view
#1

[eluser]louis w[/eluser]
Is there a way to call a method inside the controller from your view without having to get the CI object (get_instance()). Is there some kind of variable which references the currently loaded controller?

UPDATE:
Strange, I can access variables with the $this-> way, but not methods. Is this correct?


Messages In This Thread
Calling controller methods from inside view - by El Forum - 05-29-2008, 04:07 PM
Calling controller methods from inside view - by El Forum - 05-29-2008, 04:31 PM
Calling controller methods from inside view - by El Forum - 05-30-2008, 05:12 AM
Calling controller methods from inside view - by El Forum - 05-30-2008, 05:33 AM
Calling controller methods from inside view - by El Forum - 05-30-2008, 07:04 AM
Calling controller methods from inside view - by El Forum - 05-30-2008, 07:20 AM
Calling controller methods from inside view - by El Forum - 05-30-2008, 07:28 AM
Calling controller methods from inside view - by El Forum - 05-30-2008, 07:50 AM
Calling controller methods from inside view - by El Forum - 05-30-2008, 07:57 AM
Calling controller methods from inside view - by El Forum - 05-30-2008, 08:40 AM
Calling controller methods from inside view - by El Forum - 05-30-2008, 08:53 AM
Calling controller methods from inside view - by El Forum - 05-30-2008, 09:05 AM
Calling controller methods from inside view - by El Forum - 05-30-2008, 09:15 AM
Calling controller methods from inside view - by El Forum - 05-30-2008, 09:21 AM
Calling controller methods from inside view - by El Forum - 05-30-2008, 10:45 PM
Calling controller methods from inside view - by El Forum - 05-20-2012, 05:38 AM
Calling controller methods from inside view - by El Forum - 05-20-2012, 06:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB