Or you can cheat and use $_SESSION...but you didn't hear that from me. -Matt www.pseudocoder.com
On Mar 6, 1:09 pm, Baz <[EMAIL PROTECTED]> wrote: > Anything is possible... > > But I think the general consensus is that you should not. > > With that said, please remember that with MVC we are still dealing with > classes, member variables and methods here. > > There is nothing stopping you from assigning a Model member variable in your > controller, based on the session, then using that in your Model code as > needed. > > On Thu, Mar 6, 2008 at 10:49 AM, Novice Programmer <[EMAIL PROTECTED]> > wrote: > > > Hello All, > > > I want to thro a validation error if a user is not logged in. This is > > because i have a mechanism to display model validation errors in the view > > and dont want to add controller level error displaying handler. Please > > suggest that how can i proceed to check the session in the model. I dont > > think that it is possible to access Session component in the model. Is It? > > > -- > > Thanks & Regards, > > Novice (http://ishuonweb.wordpress.com/). --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
