Welcome Guest, Not a member yet? Register   Sign In
CI 2 ignores core folder.
#1

[eluser]dardar[/eluser]
I recently upgraded from 1.7.2.
I've moved my MY_Profiler.php to /core/ folder, but it just ignores /application/core folder.
If I move back this file to libraries, I'm getting error:
Code:
Fatal error: Call to undefined method CI_Profiler::ci_profiler() in C:\www\epg\application\libraries\MY_Profiler.php on line 13

My code looks like:
Code:
class MY_Profiler extends CI_Profiler {

    function __construct($config = array())
    {
        //add your needed sections to the _available_sections array here
        $this->_available_sections[] = 'mysection';
        $this->_available_sections[] = 'session';
        parent::CI_Profiler($config);
    }

this 13 line:
Code:
parent::CI_Profiler($config);


Messages In This Thread
CI 2 ignores core folder. - by El Forum - 03-25-2011, 05:50 PM
CI 2 ignores core folder. - by El Forum - 03-25-2011, 07:32 PM
CI 2 ignores core folder. - by El Forum - 03-25-2011, 11:50 PM
CI 2 ignores core folder. - by El Forum - 03-26-2011, 07:04 AM
CI 2 ignores core folder. - by El Forum - 03-28-2011, 03:51 AM
CI 2 ignores core folder. - by El Forum - 03-28-2011, 04:09 AM
CI 2 ignores core folder. - by El Forum - 03-28-2011, 09:24 AM
CI 2 ignores core folder. - by El Forum - 03-28-2011, 09:31 AM
CI 2 ignores core folder. - by El Forum - 03-28-2011, 09:40 AM
CI 2 ignores core folder. - by El Forum - 03-28-2011, 10:08 AM
CI 2 ignores core folder. - by El Forum - 03-28-2011, 10:23 AM
CI 2 ignores core folder. - by El Forum - 03-28-2011, 10:26 AM
CI 2 ignores core folder. - by El Forum - 03-28-2011, 10:29 AM
CI 2 ignores core folder. - by El Forum - 03-28-2011, 10:29 AM
CI 2 ignores core folder. - by El Forum - 03-28-2011, 10:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB