Re: Re: passing message from one action to another

2006-12-06 Thread Samuel DeVore
then in the view (or the layout) you can add check('Message.flash')) { $session->flash(); } ?> to insert it into the view On 12/6/06, DJ Spark <[EMAIL PROTECTED]> wrote: > > Usually i do something like this: > > function del($id = null) > { >if ($this->Model->del($id)) >{ >

Re: passing message from one action to another

2006-12-06 Thread DJ Spark
Usually i do something like this: function del($id = null) { if ($this->Model->del($id)) { $this->Session->setFlash("Article $id has been deleted"); } else { $this->Session->setFlash("Article $id could not be deleted"); } $this->redirect('/abc'); } Would it w

Re: passing message from one action to another

2006-12-06 Thread Samuel DeVore
you could use the session stuff (see manual http://manual.cakephp.org/chapter/session ) On 12/6/06, gabordemeter <[EMAIL PROTECTED]> wrote: > > 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