probably because you wrapped it in an echo or a short tag, it auto echos

don't
<?php echo $this->Session->setFlash('foo'); ?>
don't
<?= $this->Session->setFlash('foo'); =?>

do

<?php $this->Session->setFlash('foo'); ?>

it returns 'true' or 1

Sam D

On Feb 16, 2008 5:31 AM, herc <[EMAIL PROTECTED]> wrote:
>
> Any idea why my $this->Session->setFlash('foo'); outputs Foo 1 in my
> view? :)
> CODE:
> <div id="flashMessage" class="message">foo</div>1
>
> >
>



-- 
-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/
http://blog.samdevore.com/cakephp-pages/i-cant-bake/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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