Re: Model Architecture: User Vote History

2009-05-22 Thread Casey Stark
Oh yeah. I'm definitely keeping a rating field in each of the rateable models. The load from having to go through the vote table and count for every record would be ridiculous. A tiny bit of denormalization never hurt anyone. One more thing though... Is it alright to leave the vote table denormal

Model Architecture: User Vote History

2009-05-22 Thread Casey Stark
Hello bakers. I'm beginning on my second cake project and I need some advice with my model setup. Here's the deal: I have several models that users can vote up or down (think like stackoverflow - how users can vote on both questions and answers), but I would like to keep track of vote history. U

Re: Turning $_GET/$_POST into named params

2009-03-10 Thread Casey Stark
I've been searching for the best way to do this for a while and I agree with Martin now. I really wish cake had a more elegant solution, but this one is definitely the cleanest and fastest. Just so it's out there, I extended this idea to take care of the entire query string (what cake calls param