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
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
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
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-
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();
> }
>
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
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
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
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
>
>
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-
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
11 matches
Mail list logo