No, it wasn't.
I added this line

class TranslatorComponent extends Object{
    var $components = array('Session');

But still the same error message ...

it drives me mad.... :-(



On 19 Sep., 14:10, Thomas Ploch <[email protected]> wrote:
> Is the SessionComponent loaded in the TranslatorComponent?
>
> http://book.cakephp.org/view/996/Creating-Components#Including-Compon...
>
> Kind regards
> Thomas
>
> Am 19.09.2011 14:07, schrieb heohni:
>
>
>
> > Hi,
>
> > even with this in app_controller:
> > var $components = array('Session', 'P28n', 'Translator',
> > 'RequestHandler', 'Email', 'MathCaptcha');
> > it's not changing the error message.
>
> > On 19 Sep., 14:00, Thomas Ploch<[email protected]>  wrote:
> >> 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

Reply via email to