hi, i already tested the Ajax cakephp ToDo example and it works great. now try to do the same thing in my own project the problem is, it works fine for one resource, i created a view called resource_1 and the ajax works, how do i do that i have more than one div? i cant create for each resource_X div a view...
thanks for helping Pete VIEW (view.thtml) <div id="resource_<? echo $i; ?>"><?php echo $resource; ?></div> <? print $ajax->editor('resource_'.$i,'/projects/update/'.$i); ?> UPDATE (view update.thtml) <? echo "new text"; ?> CONTROLLER; //???? function update() { $this->render('resource_1', 'ajax'); } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---