I have a controller abc which has two actions: an index() action which
lists a series of records (from a db table) and a del() action.

Each record in the list has a delete button (abc/del/id).

If pressed, the del() action in the controller will run.

        function del($id = null)
        {
                $this->Model->del($id);
                $this->redirect('/abc');
        }


What I would like to do is display a "delete successful" message in the
index view when the user comes from the del() action. Is there any way
for me to set the message in the del() action and then pass it over to
the index() action so that it gets displayed?

Thanks!


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
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