Re: how to paginate results using ajax

2010-07-26 Thread Vinicius Núñez
Paniagua > > 2010/7/26 Vinicius Núñez > > > I'd like to know how to paginate results using ajax, e.g., to paginate > > comments of a post, as on youtube. > > > class Comments extends AppController { > > var $name = 'Comments'; > > > } &g

how to paginate results using ajax

2010-07-26 Thread Vinicius Núñez
I'd like to know how to paginate results using ajax, e.g., to paginate comments of a post, as on youtube. class Comments extends AppController { var $name = 'Comments'; } class Comment extends AppModel { var $name = 'Comment'; } class Posts extends AppController { var $name = 'Posts'; } clas

Re: comments rate system, help

2010-07-13 Thread Vinicius Núñez
to your table. Hope this is what you wanted! > > On Jul 13, 8:39 am, Vinicius Núñez wrote: > > > I'm doing a rate comments system, and I don't know how to save the > > dates in the data base. How you can see, I pass an id to the function, > > which I rea

comments rate system, help

2010-07-13 Thread Vinicius Núñez
I'm doing a rate comments system, and I don't know how to save the dates in the data base. How you can see, I pass an id to the function, which I realize to use to save on the table comments_rate comments (id, comment) comments_rate (id, comment_id, rate) $html->link('comments_rate', array('contr

Re: consulting associations, post comments users commentaries

2010-07-12 Thread Vinicius Núñez
Sorry for the late, Thanks!!! On 8 jul, 11:49, Shaz wrote: > User hasMany Post > User hasMany Comment > > Post hasMany Comment > Post belongsTo User > > Comment belongsTo Post > Comment belongsTo User > > On Jul 6, 4:43 pm, Vinicius Núñez wrote: > > > H

consulting associations, post comments users commentaries

2010-07-07 Thread Vinicius Núñez
How are you? Which way can I show a post, its comments, and users that commented them? Do you know I'm talking about, don't you? The following example does not work, or at least I don't know how retrieving data I wait for answers, thank you very much! Check out the new CakePHP Questions site h