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))
>{
>
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
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