Hi Heiner

I think that I may have worked it out.  I have made up a test component 
from scratch and everything worked fine.

The problem was that the method was being called from a helper using 
__().  So the code was executing in the wrong context, therefore the 
Session component wasn't available.  I dare say that there is a way 
around this, but my PHP knowledge isn't good enough to work it out.

Sorry for the distraction, this thread has been a bit of a waste of time 
all round.  Still, I have learnt something about PHP and Cake (I think).

Thanks again for your input.

Regards,
Langdon


>>The component has the code you recommended in its startup() method, and
>>I can access the Session component fine within startup(), but nowhere
>>else in the component.
> 
> 
> If you can access the Session object from the startup method through
> $this->Controller->Session, it _should_ be available from within all methods
> of the component. 
> 
> No other ideas than to ask you if you re-checked for typos etc...


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