Discussion:
Undefined property: View::$Session
Abby
2010-07-21 18:01:38 UTC
Permalink
I am getting this error when I am using check function. I have added
Session to helper and component in my controller but that doesnt seem
to help.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php-/***@public.gmane.org
To unsubscribe from this group, send email to
cake-php+unsubscribe-/***@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Jeremy Burns | Class Outfit
2010-07-21 20:42:43 UTC
Permalink
What are you calling and what error are you getting?

Jeremy Burns
Class Outfit

jeremyburns-***@public.gmane.org
http://www.classoutfit.com
Post by Abby
I am getting this error when I am using check function. I have added
Session to helper and component in my controller but that doesnt seem
to help.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group, send email to
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php-/***@public.gmane.org
To unsubscribe from this group, send email to
cake-php+unsubscribe-/***@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Roger
2010-07-22 03:06:53 UTC
Permalink
On Controller and Component use:

var $components = array ('Session');

$this->Session->check(...);

On View and Element, use:
in Controller: var $helpers = array ('session');

in View: $session->check(...);

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php-/***@public.gmane.org
To unsubscribe from this group, send email to
cake-php+unsubscribe-/***@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Loading...