![]() |
help! validation class doesnt work! - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: help! validation class doesnt work! (/showthread.php?tid=5072) |
help! validation class doesnt work! - El Forum - 01-04-2008 [eluser]Unknown[/eluser] controller: Code: <?php i just do as the example in the user guide, but the script returns an error: Code: A PHP Error was encountered what's wrong with my script? thanks help! validation class doesnt work! - El Forum - 01-04-2008 [eluser]tonanbarbarian[/eluser] Something strange going on here Your error says that the controller is called register yet your code says it is called Form please make sure you are including the correct code help! validation class doesnt work! - El Forum - 01-04-2008 [eluser]xwero[/eluser] I guess you copied the snippet from the userguide. There is one error in it Code: if ($this->validation->run() === FALSE) You should a least have one rule. help! validation class doesnt work! - El Forum - 01-04-2008 [eluser]Unknown[/eluser] well, this is my real code: controllers/register.php Code: <?php and this is the error msg: Code: A PHP Error was encountered this is very strange! i have used print_r($this) after loading the validation library, but i didn't see anything about the validation object help! validation class doesnt work! - El Forum - 01-04-2008 [eluser]xwero[/eluser] And you do have the validation.php file in the system/libraries directory? Maybe you got a bad CI download |