Welcome Guest, Not a member yet? Register   Sign In
COREPATH not used for core-classes
#1

[eluser]DIY_Peter[/eluser]
I definded an alternative corepath in index.php
Code:
// Path to the core folder
define('COREPATH','/www/html/apps/include/ci/');
I've been using this for a while without problems. I have a MY_CI_model class in that location that extends the standard CI_model and that works fine.

Now I wanted to extend the URI class.

So I created a file called MY_URI.php with code:
Code:
class MY_URI extends CI_URI
{
    public function __construct()
    {
        parent::__construct();
        //just to check if this file is used
        echo "ok";die;
    }
}
The code in the constructor is not run.

When I put this file in de core directory of my application it works.

Shouldnt CI look for that file in COREPATH/core ?


Messages In This Thread
COREPATH not used for core-classes - by El Forum - 09-11-2012, 04:43 AM
COREPATH not used for core-classes - by El Forum - 09-11-2012, 04:56 AM
COREPATH not used for core-classes - by El Forum - 09-11-2012, 06:15 AM
COREPATH not used for core-classes - by El Forum - 09-11-2012, 07:00 AM
COREPATH not used for core-classes - by El Forum - 09-11-2012, 07:08 AM
COREPATH not used for core-classes - by El Forum - 09-11-2012, 07:11 AM
COREPATH not used for core-classes - by El Forum - 09-11-2012, 07:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB