Yes that's right. But I think Raph will keep the __() function as he
now knows that it was the tripple S in $this->Sesssion() which caused
the problem.
@Raph: So ignore jeffs adivce and keep using the __() function. Even
if you don't want to translate your page know, you should use the
function as all the text inside will be echoed anyways. And if you'll
have to translate your page one day you will save a lot of time.

On Jul 15, 10:20 am, "[email protected]" <[email protected]>
wrote:
> 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 <[email protected]> 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 <[email protected]> wrote:
>
> > > There's still blank page.
>
> > > On 14 Lip, 12:28, M Naveed Akram <[email protected]> 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 <[email protected]> wrote:
> > > > > explain what problem exactly r u facing and also the code.......
>
> > > > > On Tue, Jul 14, 2009 at 3:41 PM, Raph <[email protected]> wrote:
>
> > > > >> Still the same problem. :/  If I remove "setFlash" then is ok.
>
> > > > >> On 14 Lip, 11:52, jeff <[email protected]> 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 <[email protected]> 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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to