Dude, you asked the question. MVC is a nice model, but if you claim you "NEED" something that it doesn't support please understand that it's just a bunch of classes.
On Thu, Mar 6, 2008 at 1:01 PM, Novice Programmer <[EMAIL PROTECTED]> wrote: > Hello Baz, > > What do you suggest then? Should i assign the value of error in controller > to the array that comes out from validation? Doesn't it break MVC paridigm. > I mean model is supposed to give us data and we are still not satisifed with > what it has outputted to us? > > Thanks. > > > On Thu, Mar 6, 2008 at 11:39 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/). > > > > > > > > > > > > > > > -- > 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 -~----------~----~----~----~------~----~------~--~---
