Load the SessionComponent as the first component in the
AppController::$components array, since the other components (obviously)
depend on the SessionComponent.
Kind regards
Thomas
Am 19.09.2011 13:58, schrieb heohni:
Hi,
I struggle now for 2 days on this problem:
app_controller:
var $components = array('P28n', 'Translator', 'RequestHandler',
'Session', 'Email', 'MathCaptcha');
my controller:
class SprachenController extends AppController{
var $components = array('Session', 'Translator');
my component:
class TranslatorComponent extends Object{
where I get at this point an error message:
debug($this->Session->read());
The error sounds like
Undefined property: TranslatorComponent::$Session [APP\controllers
\components\translator.php, line 8]
Fatal error: Call to a member function read() on a non-object
I have really no idea how to solve this, I goggled so many hours to
find an example where the same problem happend, but never found
something helpful...
Is there anybody out there who can see what I am doing wrong?
Thanks
heohni
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php