Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorJCC
     
    Hi,

    I need to access some data in session from the controllers. I plan to store data that is non-volatile and would be expensive to keep re-reading from the database.

    However, when I try to access values I get a __PHP_Incomplete_Class fatal error. I've added the models to the $models array in the controller, but it appears the class definitions are loaded after the session is started.

    Is there a way around this?

    Kind regards,

    John
    • CommentAuthorKaste
     

    when you look at the AkDispatcher

    $this->Request->recognize();
    

    starts the session, and

    $this->Controller->process..
    

    processes that request, f.i. imports the models.

    actually AkRequest starts the session even before including application_controller.php. so right now, the only point you have access to would be config/config.php

    hm, look here (my last comment) for a similiar problem, I think. Comments, ideas, new tickets appreciated.