08-13-2009, 10:32 AM
[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 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:
1. It pre-processes global input data for security.
2. It provides some helper functions for fetching input data and pre-processing it.