Welcome Guest, Not a member yet? Register   Sign In
how access a function in another controller
#6

[eluser]Unknown[/eluser]
The short is that there really isn't an easy way without either passing the first controller to the second as some type of parameter, using a static method, or making some form of Borg/Singleton structure. Depending on context, the Singleton does seem to be a rather popular feature of the CodeIgniter base anyway...


Messages In This Thread
how access a function in another controller - by El Forum - 11-09-2008, 10:06 PM
how access a function in another controller - by El Forum - 11-10-2008, 10:25 AM
how access a function in another controller - by El Forum - 11-10-2008, 12:09 PM
how access a function in another controller - by El Forum - 11-10-2008, 01:57 PM
how access a function in another controller - by El Forum - 11-10-2008, 07:15 PM
how access a function in another controller - by El Forum - 11-11-2008, 06:52 AM
how access a function in another controller - by El Forum - 11-11-2008, 01:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB