> > do you have to log to a DB? because there's a $this->log() method > > available to all that writes out to a log file. > > Yes. It has to be to a DB. > > > alternatively, and there's a little bit of duplication here, create a > > writeLog method in both your app_model and app_controller, then you > > can use in both. > > OK, but how do i access session information in the model?
hmm, you could add it to each model from the active controller like so: // in the constructor for a controller $this->Model->Session = $this->Session; but that's a bit labour intensive, I'd pop over to IRC, there must be a better approach... sorry I can't be more help :) jb -- jon bennett t: +44 (0) 1225 341 039 w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---
