I found this article and followed his advice. It's amazing what damage
a little whitespace can do.

http://dblog.com.au/web-development/cakephp-session-troubleshooting/

On Jun 16, 5:31 pm, foldiman <[email protected]> wrote:
> Correction, I'm using
>
> <?php print_r($session->read()); ?>
>
> On Jun 16, 4:20 pm, foldiman <[email protected]> wrote:
>
> > I just started a new CakePHP project with a new download of Cake. If I
> > place the following in my home.ctp in my pages directory, I see my
> > session.
>
> > <?php print_r($session); ?>
>
> > But it doesn't work on any view page that's linked to a controller.
> > For example, I have a 'cars_controller' and a 'cars' folder in the
> > 'views' folder. If I place the above code in the index.ctp file in the
> > cars folder and render the page, I get nothing! But if I go back to
> > the homepage the session is still there. I can even see that the time
> > changed.
>
> > The cars controller is not complicated. It's just this.
>
> > var $name = 'Cars';
>
> >         function beforeFilter() {
> >                 parent::beforeFilter();
> >                 $this->pageTitle = $this->name;
> >          }
>
> >         function index () {
>
> >         }
>
> > Why in the world would I not be able to see my session from the view?
> > I've tried adding the Session component and Session helper with no
> > success.
>
> > Thanks.
--~--~---------~--~----~------------~-------~--~----~
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