Re: $this->Session->setFlash problem

2010-12-22 Thread euromark
if you think about it, a single "1" somewhere usually ALWAYS is some echo of a boolean value false => '' (empty string), true => '1' echo $someBooleanReturnValue; // (here we go...) On 22 Dez., 12:56, Stephen wrote: > I've been having this issue for some time! Ahah, excellent > > On 22 December

Re: $this->Session->setFlash problem

2010-12-22 Thread Stephen
I've been having this issue for some time! Ahah, excellent On 22 December 2010 07:09, sherzo wrote: > > Thank you guys! yes Im using 1.2 and after I removing "echo" I'm not > having that "1"!!! I spent hours last night to remove that 1 > > > Thanks > Sherry > -- > View this message in contex

Re: $this->Session->setFlash problem

2010-12-21 Thread sherzo
Thank you guys! yes Im using 1.2 and after I removing "echo" I'm not having that "1"!!! I spent hours last night to remove that 1 Thanks Sherry -- View this message in context: http://cakephp.1045679.n5.nabble.com/this-Session-setFlash-problem-tp3314357p3314653.html Sent from the CakePHP m

Re: $this->Session->setFlash problem

2010-12-21 Thread euromark
what version are u using? sounds to me like you you use cake1.2 but this piece of code is cake1.3 style dont echo it in 1.2 $session->flash(); On 22 Dez., 02:02, Ryan Schmidt wrote: > On Dec 21, 2010, at 18:51, sherzo wrote: > > > I have the following lines in my controller: > > $this->Session-

Re: $this->Session->setFlash problem

2010-12-21 Thread Ryan Schmidt
On Dec 21, 2010, at 18:51, sherzo wrote: > I have the following lines in my controller: > $this->Session->setFlash('blabla'); > $this->redirect(array('action'=>'unsuccessful')); > exit(); > > and this part in my view: > if ($session->check('Message.flash')) { > echo $session->flash(); > } >

Re: $this->Session->setFlash();

2010-01-03 Thread j0n4s.h4rtm...@googlemail.com
I use this to make it lots shorter: $this->Session->setFlash(___('Success Message'), 'flashes/success'); In app/views/layouts/flashes I have P.s. in app/config/boostrap.php I have function ___($string) { return __($string, true); } Check out the new CakePHP Questions site http://cakeq

RE: $this->Session->setFlash();

2010-01-01 Thread Dave
Thanks, I found it in the cookbook right after I sent the message but thanks for your time! Happy New Year. Dave -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of Jeremy Burns Sent: January-02-10 12:50 AM To: CakePHP Subject: Re: $this

Re: $this->Session->setFlash();

2010-01-01 Thread Jeremy Burns
Hi Dave Here's how you can do it: $this->Session->setFlash(__('Your message.', true), true, array ('class' => 'yourClass')); On Jan 2, 2:35 am, "Dave" wrote: > I was wondering is there a way to add a class to the session from the > controller? > > The setflash as far as i can see is used for al

Re: $this->Session->setFlash(' -- msg here -- '); not showing up on 1.2.x

2007-12-10 Thread Louie Miranda
Thanks a lot everyone! On Dec 11, 2007 12:13 AM, daphonz <[EMAIL PROTECTED]> wrote: > > Also make sure you have something in your view to display the message: > > if($session->check('Message.flash')): >$session->flash(); >endif; > ?> > > Or the like. > > -Casey > >

Re: $this->Session->setFlash(' -- msg here -- '); not showing up on 1.2.x

2007-12-10 Thread daphonz
Also make sure you have something in your view to display the message: check('Message.flash')): $session->flash(); endif; ?> Or the like. -Casey On Dec 9, 10:44 pm, "Louie Miranda" <[EMAIL PROTECTED]> wrote: > Got this working.. > > Just add.. > > $this-

Re: $this->Session->setFlash(' -- msg here -- '); not showing up on 1.2.x

2007-12-09 Thread Louie Miranda
Got this working.. Just add.. $this->Session->setFlash('Sorry, the information you\'ve entered is incorrect.'); $this->redirect('login'); *$this->redirect('login');* So, there will be no blank page. And the flash message will be shown on the login() Louie On De