04-14-2017, 08:57 AM
Hi all!
\Config\Validation.php
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
\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