Welcome Guest, Not a member yet? Register   Sign In
Using $_POST at the model
#9

[eluser]urrus[/eluser]
[quote author="kirkaracha" date="1250124896"]The user guide recommends using the Input Class ($this->input->post('title')) instead of using $_POST directly ($_POST['title']).[/quote]

What is the benefit of this style?

Only cuz You get false in to variable when post item empty

$test=$this->input->post('test');

Or there is something else


Messages In This Thread
Using $_POST at the model - by El Forum - 08-12-2009, 06:05 AM
Using $_POST at the model - by El Forum - 08-12-2009, 06:14 AM
Using $_POST at the model - by El Forum - 08-12-2009, 11:04 AM
Using $_POST at the model - by El Forum - 08-12-2009, 11:27 AM
Using $_POST at the model - by El Forum - 08-12-2009, 12:32 PM
Using $_POST at the model - by El Forum - 08-12-2009, 01:54 PM
Using $_POST at the model - by El Forum - 08-12-2009, 03:01 PM
Using $_POST at the model - by El Forum - 08-12-2009, 03:38 PM
Using $_POST at the model - by El Forum - 08-13-2009, 06:41 AM
Using $_POST at the model - by El Forum - 08-13-2009, 10:32 AM
Using $_POST at the model - by El Forum - 08-14-2009, 12:47 AM
Using $_POST at the model - by El Forum - 08-14-2009, 01:02 AM
Using $_POST at the model - by El Forum - 08-14-2009, 01:58 AM
Using $_POST at the model - by El Forum - 08-14-2009, 02:17 AM
Using $_POST at the model - by El Forum - 08-14-2009, 02:21 AM
Using $_POST at the model - by El Forum - 08-14-2009, 02:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB