Additional rule for Validation |
CodeIgniter has a few roles related to restrict the input to alphanumeric characters. But it does not have a standard rule to limit the input for identifiers. You can of course use regular expressions (like [_a-zA-Z][_a-zA-Z0-9]*) but a native rule would be convenient and has a broad usage, I believe.
Regards, Hardy
Doesn't the "alpha_dash" validation rule do this already?
See https://codeigniter4.github.io/CodeIgnit...able-rules (03-06-2019, 11:49 AM)ciadmin Wrote: Doesn't the "alpha_dash" validation rule do this already? No, not according to the documentation and not according to the implementation: an identifier may not begin with a dash or a number! |
Welcome Guest, Not a member yet? Register Sign In |