Welcome Guest, Not a member yet? Register   Sign In
extension not working?
#1

[eluser]deck42[/eluser]
Hi,

In a file "application\core\MY_Session.php" I have the code
Code:
class MY_Session extends CI_Session
{
    function activate_flashdata($key)
    {
        ... // some code
    }
}

Now in a controller I have the lines
Code:
$this->session->set_flashdata('status', $status);
$this->session->activate_flashdata('status');

I get the error Call to undefined method CI_Session::activate_flashdata() on the 2nd of above lines.
What am I doing wrong?

Thanks alot!
#2

[eluser]danmontgomery[/eluser]
Should be in application/libraries, not application/core. If there's ever any confusion where an extended class belongs, you can just look in system/ and see where it is. In this case, the session library is in system/libraries.
#3

[eluser]deck42[/eluser]
Oh.. ok thank you very much! Quite some time I wasted here :-)
Gonna suggest some small user guide additions...




Theme © iAndrew 2016 - Forum software by © MyBB