
Peter Klauer - 2006-09-04 18:15:18 -
In reply to message 3 from Jon Ezrin
I never tried this. Since it is possible to have multiple instances of sqltable on one page, it should work with some exclusion.
At the moment, if every comment item on this same page has the same $code_for and only $id_for is changed, there should be some trouble because the sqltables will all together respond to the buttons. Same as steering your neighbours airplane with your remote. You could go around this issue by putting
$comment->sqltable->instance = $code_for.$id_for;
each time before you put "$comment->put();"
($code_for and $id_for are something like 'articles' and '432', where $id_for is the id of the article in the sql table)