Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorJCC
    • CommentTimeApr 25th 2008
     
    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
    • CommentTimeApr 25th 2008
     

    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.

Add your comments
    Username Password
  • Format comments as