On Sun, Apr 12, 2009 at 3:52 AM, gimmebucks <[email protected]> wrote:
>
> I want the system to display :
> "You are not authorized to access that location."
>
> But not
> "You are not authorized to access that location.
> 1"
>
> Please help.
Just like brian said, remove the echo. Instead of:
echo $session->flash('auth');
.. try:
$session->flash('auth');
You're seeing the additional "1" because the flash() function returns a
boolean which indicates the result of the call to the flash() method. The
printing of the error message itself is done automatically inside the
flash() function so you don't need to echo the result out.
- Gonzalo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---