Welcome Guest, Not a member yet? Register   Sign In
loading a controller function in another controller function
#1

[eluser]Unknown[/eluser]
let suppose i have a controller Controller_A and it's function A and another Controller_B and it's function is B

can i call function A of Controller_A from inside the Controller_B function B

#2

[eluser]TWP Marketing[/eluser]
Rethink what you want to do.
You have the same function which is performed by two different controllers.
Move this function to a model and load that model in each controller.
Avoid the duplication of code.
#3

[eluser]CroNiX[/eluser]
Sounds like a great place to use a library.




Theme © iAndrew 2016 - Forum software by © MyBB