Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] [1.71] Passing data
#4

[eluser]lordmontie[/eluser]
The $data class var is loaded each time the controller is loaded and the single function is called. If you need to pass data between controller loads, you'll have to either use sessions or function parameters or POST form data. Because $this->data['foo'] is set in the controller's construct, it's set for all loads of controller while $this->data['number'] is set only in the doStuff function.


Messages In This Thread
[SOLVED] [1.71] Passing data - by El Forum - 08-29-2009, 09:08 AM
[SOLVED] [1.71] Passing data - by El Forum - 08-29-2009, 09:41 AM
[SOLVED] [1.71] Passing data - by El Forum - 08-30-2009, 06:48 AM
[SOLVED] [1.71] Passing data - by El Forum - 09-02-2009, 10:44 AM
[SOLVED] [1.71] Passing data - by El Forum - 09-02-2009, 06:02 PM
[SOLVED] [1.71] Passing data - by El Forum - 09-03-2009, 06:59 AM
[SOLVED] [1.71] Passing data - by El Forum - 09-05-2009, 04:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB