Welcome Guest, Not a member yet? Register   Sign In
Custom validation is not being called on production server but works on localhost
#4

[eluser]tomcode[/eluser]
If You haven't changed CI's configuration settings for the subclass_prefix, try this :

1. name the custom validation file MY_Form_validation.php

2. the code :
Code:
class My_Form_validation extends CI_Form_validation {
    
    function My_Form_validation()
    {
        echo 'called My_Form_validation';
        parent::CI_Form_validation();
    }
    
    function check_me()
    {    
      echo 'im running';
    }
}

3. Take out
Code:
$this->load->library('my_form_validation');


Messages In This Thread
Custom validation is not being called on production server but works on localhost - by El Forum - 01-26-2010, 11:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB