Welcome Guest, Not a member yet? Register   Sign In
Cant extend Session library
#1

[eluser]Nekluh[/eluser]
Hi!

I'm converting to the latest codeigniter 2.02 and suddenly I can't extend the Session library.

I have the MY_Session.php in the /core/ folder and it looks like this

Code:
class MY_Session extends CI_Session {

    function __construct()
    {
        parent::__construct();
        echo "In extended session";
    }
}

I can extend the Controller and Model class without any problems.
Does anybody have the same problem? Ideas?
#2

[eluser]Nekluh[/eluser]
I found the problem!
The file should be placed in the Library folder, not the Core folder.
#3

[eluser]InsiteFX[/eluser]
Very simple!

If the library you are extending is in the system/core then your extended library goes into application/core.

If the library you are extending is in the system libraries then your extended library goes into application/libraries.

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB