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

[eluser]patwork[/eluser]
Problem must be somewhere else then. Your library must be in:

/application/libraries/MY_Form_validation.php

With something like this:

Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class MY_Form_validation extends CI_Form_validation {

    public function __construct($rules = array())
    {
        log_message('debug', '*** Hello from MY_Form_validation ***');
        parent::__construct($rules);
    }

}

you should get log like this:

Code:
DEBUG - 2011-04-12 11:31:44 --> Config Class Initialized
DEBUG - 2011-04-12 11:31:44 --> Hooks Class Initialized
DEBUG - 2011-04-12 11:31:44 --> Utf8 Class Initialized
DEBUG - 2011-04-12 11:31:44 --> UTF-8 Support Enabled
DEBUG - 2011-04-12 11:31:44 --> URI Class Initialized
DEBUG - 2011-04-12 11:31:44 --> Router Class Initialized
DEBUG - 2011-04-12 11:31:44 --> No URI present. Default controller set.
DEBUG - 2011-04-12 11:31:44 --> Output Class Initialized
DEBUG - 2011-04-12 11:31:44 --> Security Class Initialized
DEBUG - 2011-04-12 11:31:44 --> Input Class Initialized
DEBUG - 2011-04-12 11:31:44 --> Global POST and COOKIE data sanitized
DEBUG - 2011-04-12 11:31:44 --> Language Class Initialized
DEBUG - 2011-04-12 11:31:44 --> Loader Class Initialized
DEBUG - 2011-04-12 11:31:44 --> Controller Class Initialized
DEBUG - 2011-04-12 11:31:44 --> *** Hello from MY_Form_validation ***
DEBUG - 2011-04-12 11:31:44 --> Helper loaded: form_helper
DEBUG - 2011-04-12 11:31:44 --> Form Validation Class Initialized
DEBUG - 2011-04-12 11:31:44 --> File loaded: application/views/welcome_message.php
DEBUG - 2011-04-12 11:31:44 --> Final output sent to browser
DEBUG - 2011-04-12 11:31:44 --> Total execution time: 0.3524


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