Hi,

I am new to this fora. I have encounted a possible bug in the CakePHP
framework or possible made a odd mistake myself. Any way, every time I
send messages to the view through the Session->setFlash() method the
Session->flash() method output a "1" after the div elements. Like the
example below:

<div id="flashMessage" class="message">This is a message...</div>1

I thought in the begining that I had done something wrong, since I
tend to be a bit to fast (and also sloppy) on the keyboard. But after
been able to reproduce this error on different servers and with a
clean installation of CakePHP, I can not understand what I possible
can be doing wrong.

This is my controller code:

<?php

class PagesController extends AppController
{
    var $uses = array();

    function index() {
        $this->Session->setFlash('This is a message...');
    }
}

And my default.ctp code:

<?php echo $session->flash(); ?>
<?php echo $content_for_layout; ?>


As you can see my application has no functionality and the error
occurs anyway. By the way, I have tried to search for this bug in
Google but it is quite hard to find anything relevant when the
searching criteria is pretty much "1". ;)


Thanks in advance for any help

-Kjetil

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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