Welcome Guest, Not a member yet? Register   Sign In
Can not extend Form Validator core library
#3

[eluser]patwork[/eluser]
You don't need to use get_instance() when you're in extended class. This will work:

Code:
$this->set_message('valid_url', 'The %s field must contain a valid url.');

If you're not sure MY_Form_validation is properly loaded, the best place to check it is it's constructor. Try to add something like:

Code:
function __construct()
{
    echo "HELLO FROM MY_FORM_VALIDATION";
    parent::__construct();
}

Only for debug purposes, of course Wink


Messages In This Thread
Can not extend Form Validator core library - by El Forum - 04-11-2011, 07:08 AM
Can not extend Form Validator core library - by El Forum - 04-11-2011, 09:07 AM
Can not extend Form Validator core library - by El Forum - 04-11-2011, 11:13 AM
Can not extend Form Validator core library - by El Forum - 04-11-2011, 10:48 PM
Can not extend Form Validator core library - by El Forum - 04-11-2011, 10:55 PM
Can not extend Form Validator core library - by El Forum - 04-11-2011, 10:59 PM
Can not extend Form Validator core library - by El Forum - 04-11-2011, 11:08 PM
Can not extend Form Validator core library - by El Forum - 04-11-2011, 11:45 PM
Can not extend Form Validator core library - by El Forum - 04-12-2011, 03:36 AM
Can not extend Form Validator core library - by El Forum - 04-12-2011, 03:45 AM
Can not extend Form Validator core library - by El Forum - 06-01-2011, 01:37 AM
Can not extend Form Validator core library - by El Forum - 06-02-2011, 11:57 PM
Can not extend Form Validator core library - by El Forum - 06-03-2011, 02:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB