That makes a lot of sense, I think it puts me on the right track.

On Jan 27, 7:47 pm, cricket <zijn.digi...@gmail.com> wrote:
> > and removing the viewed rows in the db when a comment is added
>
> I don't understand what you mean by that. If it's what I think then
> I'd guess it would require a lot of writes to the DB.
>
> I did put something together last night. It's a bit rough around the
> edges but it's a start. It involves code from a bunch of files, so you
> can check it out here:
>
> http://pastebin.ca/1768372
>
> My first inclination was to create a behavior. Even though there are
> two models involved directly--Post & Comments--I thought it could be
> done. But I need access to the Session. I've chosen to pass it from
> the controller to Post model. It's a cheat, but I can't think of any
> way (that would be better) to do this with a behavior.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to