Form validation will be the Chinese package, copied to the application folder under the language, and in config.php, the voice changed to Simplified-chinese, and the Chinese package folder name consistent.
This file is not available for my_lang.php brought with the Chinese package.
Form verification is divided into four steps,
1. Loading auxiliary functions and classes
$this->load->helper (' form ');
$this->load->library (' form_validation ');
2. Write the Rules,
$this->form_valdation->set_rules (' title ', ' News headlines ', ' required|min_length[4 ');
3. Display on the foreground page
<?php Echo form_error (' title ', ' <span class= ' Red > ', ' </span> ') after the input box in the title of the View page. >
4. In the background controller, run the verification
$this->form_validation->run ();
Form validation, with multi-language support, CI