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

[eluser]gon[/eluser]
The code is just as usual:

For example, the typical controller function:

Code:
function index() {
   $this->load->library('validation');
   if ($_POST) {
      $this->validation->set_rules( ... );
      if ($this->validation->run() === FALSE) {
          $this->load->view('formsuccess_view');
          return;
      }
   }
   $this->load->view('form_view');
}


And the form view would be just like in the docs examples.
The trick is that by using the library extension I posted, there won't be erros reporting that values hasn't been initialized for the validation object, 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