Simple interaction with my Model class using ajax with jQuery library

2007-08-08 Thread ayampanggang

I want to send data with ajax with jQuery. this data is to be stored
inside my ratings table. how should i send the data to my Rating model?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Problem with specifyings condition in hasMany association

2007-08-03 Thread ayampanggang

Say, i made some sort of blog. I have Post model and Comment model.

Post has-many Comment. post view only show comment related to that
certain post, thus, only show comments which id equals to the current
post id.

I am trying to make that kind of conditions, but that doesn't work. It
gave me error: "Parse error: syntax error, unexpected '"' in C:\xampp
\htdocs\cake\app\models\event.php on line 19"

Looks like cake doesn't like variable in an associative array?

This is the snippet of the code. The conditions is on line 5:
http://pastebin.com/m6f8bba01


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---