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

[eluser]Jeroen Brussich[/eluser]
[quote author="lordmontie" date="1251927898"]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.[/quote]

I thought as much.
Thanks for the clarification, though.

Being new @ CI, I wasn't sure session (or flashdata in my case) was the correct way to go.


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