No, I've been paying attention.  Sorry for no response.

I think checking at the model level makes sense.  I just didn't know
if there was some standard way of specifying rules, because it very
much seems like a validation step, but I didn't see any validation
functions that handle this kind of context-dependent condition.

Jacob Everist

On Fri, Jul 10, 2009 at 6:54 AM, GravyFace<[email protected]> wrote:
>
>> You can't access session data from the model, so best to run that
>> check in the basket code, don't allow an item owned by that person to
>> be added to the basket - dodgy items shouldn't ever get to the model
>> stage.
>
> Yup.  He didn't mention Cart at all, but I assumed he would be setting
> the current user id in the data array from the controller for other
> reasons ("who bought what" kind of thing).
>
> Actually I don't even think he's responded to any of posts, so we may
> be preaching to the choir here. :)
>
> >
>



-- 
Jacob Everist

cell:  310-425-9732
email:  [email protected]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to