I just noticed my code was corrected in a similar situation in another thread.  The updated code uses a helper to access the session.  The way I showed previously is the "old" way of doing it.

The Session helper should be autoloaded now.  I need to go back and update my code.

So the new code looks like this....

<?php if($session->check(' Message.flash')) $session->flash(); ?>

Sorry for the 'controller' code before.


On 9/12/06, Mikee Freedom < [EMAIL PROTECTED]> wrote:

so how does this sit with the 'not using the controller in the view /
layout' discussion? or is that a stupid question?

On 13/09/06, John Zimmerman <[EMAIL PROTECTED]> wrote:
> Specifically, look for a line similar to the following in your default.thtml
> file.  If it is not there, put it wherever you want the flash message to
> show up.
>
> <?php if ($this->controller->Session->check('
> Message.flash')) $this->controller->Session->flash(); ?>
>
>
>
> On 9/12/06, Larry E. Masters aka PhpNut < [EMAIL PROTECTED]> wrote:
> >
> > Compare your default.thtml to the core one, I can almost tell you that you
> removed a key section of code.
> >
> >
> >
> >
> > --
> > /**
> > * @author Larry E. Masters
> > * @var string $userName
> > * @param string $realName
> > * @returns string aka PhpNut
> > * @access  public
> > */
> >
> >
> >
> >
>
>
>  >
>


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to