If you don't have a flash.thtml layout in your views/layouts folder, that could be the problem when trying to use $this->flash... have a look at the function:
http://api.cakephp.org/controller_8php-source.html#l00604 On May 17, 9:05 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > YEAH IT WORKS... THANKS.... > > ANY POINTER TO WHY FLASH NOT WORKING??? > > On May 17, 5:03 pm, Sliv <[EMAIL PROTECTED]> wrote: > > > Try this: > > > if($this->Note->save($this->data)) { > > $this->Session->setFlash('Your note has been updated.'); > > $this->redirect('/notes/'); > > exit(); > > > } > > > On May 17, 4:48 am, "[EMAIL PROTECTED]" > > > <[EMAIL PROTECTED]> wrote: > > > hi, > > > > Newbee to cake. > > > > I am using flash, biut it doesnt seem to directing me to the url i > > > give. > > > > Was trying a tutorail page, and gave something like > > > > if($this->Note->save($this->data['Note'])) > > > { > > > $this->flash('Your note has been updated.','/notes/'); > > > } > > > > in edit function in NotesController. > > > > I am ablte to accesshttp://localhost/cake/notesassuch.. but after i > > > edit one of the notes its not redirecting me to the new url. > > > > I tried giving even time in flash method. No success. > > > > Any pointers??? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
