Re: correct use of flash

2007-05-17 Thread kionae

Are you in production mode or development mode?  Flash will only
forward you if you've set your site to production in app/config/
core.php (change the line that reads define('DEBUG', 1); to
define('DEBUG', 0);).





On May 17, 3: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/notesas such.. 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 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
-~--~~~~--~~--~--~---



Re: correct use of flash

2007-05-17 Thread Sliv

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



Re: correct use of flash

2007-05-17 Thread [EMAIL PROTECTED]

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



Re: correct use of flash

2007-05-17 Thread Sliv

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/notesas such.. 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 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
-~--~~~~--~~--~--~---