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

[eluser]Zarate[/eluser]
Got the download, and trying to make it work. This what i have:

$validate = array();
$validate[] = array('input'=>$rewrite,'input_type'=>'value','rules'=>'maximum:250');

And i get this error:


--------------------------
Message: Undefined variable: func_array
Filename: libraries/validate.php
Line Number: 206

Message: array_merge() [function.array-merge]: Argument #1 is not an array
Filename: libraries/validate.php
Line Number: 206
--------------------------

It seems you're not initializating $func_array anywhere. If i do it, i can run the app without errors, but is not passing validation, when it should. Trying to debug, the rule name is not being created properly, therefore the helper cannot be loaded and thus the validation fails.

Any ideas?

Thanks!

ps: validate class doesn't seem to have a "do" method and it appears in the docs. I'm using run for the time being.


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