Welcome Guest, Not a member yet? Register   Sign In
Bug by using multiple setRule() methods
#1

Hi,

PHP Code:
$this->form_validation->setRule('street''''exact_length[0]', [
    
'exact_length' => 'msg1'
]);
$this->form_validation->setRule('city''''exact_length[0]', [
    
'exact_length' => 'msg2'
]); 

Only 'msg2' was shown. The message for street was ignored and instead i see the default message. If i switch the order, then street is ok but city is ignored. Is this the normal behaviour?
Reply
#2

Upgrade your CI version.
See https://github.com/codeigniter4/CodeIgni...ssues/6239
Reply




Theme © iAndrew 2016 - Forum software by © MyBB