Hello,

I have list of items ( index() in controller ), each item has 'Delete'
button that point Ajax call to delete() function in controller, then
updates the div of items.

In delete() function, after actual deletion of record I need to return
to the same view and call index() function again - to let it again
generate all listing. And I have problems with it.

Right now I do it like this:

[repeat all code from index() function]
$this->render('index','ajax');

The solution will be easy if render('index', 'ajax') will not just
show index view but also call index() in controller before and I would
not have to repeat code as I do it now.

RequestAction also does not seem to be helpful.

Please help.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to