I am using 1.3.
What do you mean with PHP4 Syntax? What in particular?

On 19 Sep., 19:11, Miles J <[email protected]> wrote:
> Which Cake version are you using?
>
> Also on a side note, stop using PHP4 syntax.
>
> On Sep 19, 8:33 am,heohni<[email protected]>
> wrote:
>
>
>
> > Oh that's cool!
> > I didn't know this bin...
>
> > translator componenthttp://bin.cakephp.org/view/666573507
>
> > On 19 Sep., 15:17, Thomas Ploch <[email protected]> wrote:
>
> > > Please bin your TranslatorComponent code 
> > > to:http://bin.cakephp.organdpostthe url to the group so we can check
> > > what's going wrong.
>
> > > Kind regards
> > > Thomas
>
> > > Am 19.09.2011 14:14, schriebheohni:
>
> > > > 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, schriebheohni:
>
> > > >>> 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, schriebheohni:
>
> > > >>>>> 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