• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
loading a controller function in another controller function

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

[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.

Sounds like a great place to use a library.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.