Welcome Guest, Not a member yet? Register   Sign In
Validation and GET values
#2

[eluser]xwero[/eluser]
I've made a validation library that makes it possible to validate globals and even normal values. It's in an alpha stage but i'm working on it to move into beta stage as fast as possible, now i have one feature to add and a whole bunch of rules. Validate.

The library is different from the CI validation library for your case that it doesn't alter the input that should be done by the input class.

The usage for your case is
Code:
$validate[0]['input'] = $this->uri->segment(2);
$validate[0]['input_type'] = 'value';
$validate[0]['rules'] = 'number|maximum:8'; // number is not yet a rule

Rules are easy to make. They all have a boolean output and it is a function per file.


Messages In This Thread
Validation and GET values - by El Forum - 04-02-2008, 01:56 PM
Validation and GET values - by El Forum - 04-02-2008, 02:46 PM
Validation and GET values - by El Forum - 04-02-2008, 02:52 PM
Validation and GET values - by El Forum - 04-02-2008, 03:33 PM
Validation and GET values - by El Forum - 04-02-2008, 03:37 PM
Validation and GET values - by El Forum - 04-02-2008, 04:24 PM
Validation and GET values - by El Forum - 04-03-2008, 02:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB