*/ public array $templates = [ 'list' => 'CodeIgniter\Validation\Views\list', 'single' => 'CodeIgniter\Validation\Views\single', ]; // -------------------------------------------------------------------- // Rules // -------------------------------------------------------------------- public $login = [ 'username' => [ 'label' => 'Auth.username', 'rules' => 'required|max_length[30]|min_length[3]|regex_match[/\A[a-zA-Z0-9\.]+\z/]', ], //'email' => [ //'label' => 'Auth.email', //'rules' => 'required|max_length[254]|valid_email', //], 'password' => [ 'label' => 'Auth.password', 'rules' => 'required', ], ]; }