cake-php@googlegroups.com
[Top] [All Lists]

Re: SessionComponent not always available

Subject: Re: SessionComponent not always available
From: Tilen Majerle
Date: Mon, 6 Dec 2010 16:04:33 +0100
http://book.cakephp.org/view/1564/Controller-Components on this link, in yellow you can see this:

SessionComponent and SessionHelper are not automatically loaded.

you need to add them in app_controller.php
--
Tilen Majerle


2010/12/6 McBuck DGAF <mcbuckdgaf@xxxxxxxxx>
What version are you using?

My understanding was that SessionComponent and SessionHelper no longer
autoloaded in 1.3:

http://book.cakephp.org/view/1564/Controller-Components

It appears that the documentation is conflicting.

On Dec 5, 10:16 pm, Ryan Schmidt <google-2...@xxxxxxxxxxxxxx> wrote:
> Answering my own question:
>
> On Dec 5, 2010, at 21:08, Ryan Schmidt wrote:
>
> > The documentation for $components says:
>
> >http://book.cakephp.org/view/961/components-helpers-and-uses
>
> > "The Html, Form, and Session Helpers are always available by default, as is the SessionComponent" however this appears to be false.
>
> I think I got tripped up by the word "always" (which I would remove if I could edit the book), when I should have been paying attention to the words "by default". Since I've overridden the $components variable, I've overridden the defaults which thus no longer apply.

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@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

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@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
<Prev in Thread] Current Thread [Next in Thread>