Welcome Guest, Not a member yet? Register   Sign In
Correct methods for inter- and intra- controller communication
#1

[eluser]Unknown[/eluser]
Hi all,

What is the correct method to transfer messages between different functions in the same controller? I am looking for solutions other than function arguments as I don't want to allow passing arguments from outside the controller by calling the functions' url.

What about passing messages between different controllers? Say, if I want to redirect from one controller to another?

Thanks.
#2

[eluser]CroNiX[/eluser]
From within a class, you can just set a class property and read it from another method in the class, or you could pass it as a variable to the method.

For controller to controller, you can use sessions to store data and read it in the other controller.




Theme © iAndrew 2016 - Forum software by © MyBB