Welcome Guest, Not a member yet? Register   Sign In
Validation min_length and max_length issue
#1

Hi all!

\Config\Validation.php

PHP Code:
public $validateForm = [
 
       'name'        => 'required|min_length[4]|trim',
]; 

Controller:
$this->validation->run($this->request->getPost(), 'validateForm');

Error:
Call to undefined function CodeIgniter\Validation\mb_strlen()
BASEPATH/Validation/Rules.php at line 259


same error if use max_length
Reply


Messages In This Thread
Validation min_length and max_length issue - by nskarl - 04-14-2017, 08:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB