if your using a multi-lingual applications with translations do not remove.
__('Bill was sent by e-mail successfully', true) $this->Session->setFlash(__('Bill was sent by e-mail successfully', true)); setting __('this field', true) enables you to generate a po(t) file to translate that string into another language. If your application has no interest in translations you do not need to use it and can change it to $this->Session->setFlash('Bill was sent by e-mail successfully'); On Jul 14, 6:55 pm, Kau-Boy <bernhard...@gmail.com> wrote: > See my correction on your code:http://pastebin.com/m6b2da595 (Use > the Diff to see the correction) > Sometimes it can be this easy to solve but also very hard to find even > looking thousands of times on the same line of code :-) > > On Jul 14, 1:40 pm, Raph <ra...@epoczta.pl> wrote: > > > There's still blank page. > > > On 14 Lip, 12:28, M Naveed Akram <cmn...@gmail.com> wrote: > > > > hey set your debug mode to 2 or 3 so that you can receive error message.. > > > > On Tue, Jul 14, 2009 at 3:15 PM, jeff <jeffery2k2...@gmail.com> wrote: > > > > explain what problem exactly r u facing and also the code....... > > > > > On Tue, Jul 14, 2009 at 3:41 PM, Raph <ra...@epoczta.pl> wrote: > > > > >> Still the same problem. :/ If I remove "setFlash" then is ok. > > > > >> On 14 Lip, 11:52, jeff <jeffery2k2...@gmail.com> wrote: > > > >> > use the foll: > > > >> > manner > > > > >> > $this->Session->setFlash('User profile has been updated.'); > > > >> > $this->redirect('/users/home'); // controller name/action > > > >> > name................ > > > > >> > On Tue, Jul 14, 2009 at 3:19 PM, Raph <ra...@epoczta.pl> wrote: > > > > >> > > Hello! > > > > >> > > I have weird (I think) problem. In one of my actions I have the > > > >> > > code: > > > > >> > > $this->Sesssion->setFlash(__('Bill was sent by e-mail > > > >> > > successfully', > > > >> > > true)); > > > >> > > $this->redirect(array('controller' => 'somecotroller'); > > > > >> > > and nothing happend. Redirection dosen't work, there's only blank > > > >> > > screen. > > > > >> > > When I remove "setFlash" everything is ok. Whtat's wrong with > > > >> > > "setFlash"? > > > > >> > > -- > > > >> > > Raph > > > > >> > -- > > > >> > -- > > > >> > (¨`•.•´¨) I may be busy, > > > >> > `•.¸(¨`•.•´¨) but I assure you, > > > >> > (¨`•.•´¨)¸.•´ you are always in my heart > > > >> > `•.¸.•´ > > > > >> > With Lots of Love..... > > > > >> > THANKS AND REGARDS > > > > >> > Jeffery Jacob > > > > > -- > > > > -- > > > > (¨`•.•´¨) I may be busy, > > > > `•.¸(¨`•.•´¨) but I assure you, > > > > (¨`•.•´¨)¸.•´ you are always in my heart > > > > `•.¸.•´ > > > > > With Lots of Love..... > > > > > THANKS AND REGARDS > > > > > Jeffery Jacob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---