Welcome Guest, Not a member yet? Register   Sign In
What structure (MVC) should I use / simple app
#2

[eluser]Edemilson Lima[/eluser]
I cannot saw where you did get the user submitted data. To do this, you must use:
Code:
$this->input->post('field_name');
If you want to keep the user submitted data for more than one request, you must store it in a session or pass them to the next request using flash variables. To store in a session, you must use:
Code:
$this->session->set_userdata('var_name',$data);
To get the session data, use:
Code:
$this->session->userdata('var_name');
Remember that CI session based on cookies do not store too much user data, since the session cookie can only store 4 KB. There are another options, like Native Session, based on PHP session engine.


Messages In This Thread
What structure (MVC) should I use / simple app - by El Forum - 02-11-2008, 03:30 PM
What structure (MVC) should I use / simple app - by El Forum - 02-11-2008, 05:20 PM
What structure (MVC) should I use / simple app - by El Forum - 02-12-2008, 05:40 PM
What structure (MVC) should I use / simple app - by El Forum - 02-12-2008, 06:20 PM
What structure (MVC) should I use / simple app - by El Forum - 02-13-2008, 01:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB