Welcome Guest, Not a member yet? Register   Sign In
Issue with Validation library
#6

[eluser]gon[/eluser]
What I do is extending Validation library by putting this code in a file called MY_Library, in application/libraries

Only works for PHP5:

Code:
class MY_Validation extends CI_Validation {    
   function __get($name) {
      return isset($this->$name) ? $this->$name : null;
   }
}


You can then write $this->validation->whatever, and $this->validation->whatever_error even if validation hasn't been run.


Messages In This Thread
Issue with Validation library - by El Forum - 07-11-2008, 04:42 AM
Issue with Validation library - by El Forum - 07-11-2008, 04:45 AM
Issue with Validation library - by El Forum - 07-11-2008, 05:01 AM
Issue with Validation library - by El Forum - 07-11-2008, 12:00 PM
Issue with Validation library - by El Forum - 07-13-2008, 11:45 PM
Issue with Validation library - by El Forum - 07-14-2008, 03:46 AM
Issue with Validation library - by El Forum - 07-14-2008, 06:02 AM
Issue with Validation library - by El Forum - 07-14-2008, 06:22 AM
Issue with Validation library - by El Forum - 07-14-2008, 07:02 AM
Issue with Validation library - by El Forum - 07-14-2008, 07:03 AM
Issue with Validation library - by El Forum - 07-14-2008, 07:09 AM
Issue with Validation library - by El Forum - 07-14-2008, 07:22 AM
Issue with Validation library - by El Forum - 07-14-2008, 07:57 AM
Issue with Validation library - by El Forum - 07-14-2008, 07:17 PM
Issue with Validation library - by El Forum - 07-14-2008, 10:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB