Using $_POST at the model |
[eluser]Edmundas KondraĊĦovas[/eluser]
[quote author="urrus" date="1250185311"][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[/quote] The purpose of Input Class is clearly explained in the User Guide. Quote:The Input Class serves two purposes: |
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
|