Hi,

What you need to do is to add/use the helper

$session->check('function')

Regards Sree



peterhf wrote:
> 
> 
> I have created a thtml file and placed it in the /pages/ directory. In
> the file I have "if ($this->Session->check('function')) ...". The
> following error message appears: "Fatal error: Call to a member
> function on a non-object in ..." which points to the line containing
> the "...Session->check....".
> 
> I thought that the Session Component was available to every Cake
> controller including the PagesController.
> 
> Where have I gone wrong?
> 
> Peter -
> 
> 
> > 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Session-question.-tf3578074.html#a10033925
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to