xss_clean is no longer part of form validation in Codeingitore 3
Just remove xss_clean
from your validation roul
$this->form_validation->set_rules('pword', 'Password', 'required|max_length[30]|callback_pword_check');
If you really, really need to apply that rule, you should now also load the Security Helper, which contains xss_clean()
as a regular function and therefore can be also used as a validation rule.
go to application/config/autoload.php :
$autoload['helper'] = array('security');
Or, before your form validation
$this->load->helper('security');
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…