Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Session_driver
  • Hi,

    I need to overload session classes, but I can't figure where to put thoses lines...
    * class_alias('Matnat\\Session_Driver', 'Session_Driver');
    * class_alias('Matnat\\Session_Cookie', 'Session_Cookie');

    I tried just before or after the Autoloader::register(); but it simply doesn't work... In fact, the class is loaded, instantiated, but the session is not created (no cookie, no session).
  • You don't. Using class_alias that is.

    You need to inform the autoloader of the class overloading by adding a class map, Your app/bootstrap contains a commented example on how to do that.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion