debug($this) on the component or controller to see if the Session object is being attached.
On Sep 19, 11:54 pm, heohni <heidi.anselstet...@consultingteam.de> wrote: > I uploaded all to my webserver and have the same problem... > > Anyone any idea? > I am really lost here.... > > On 20 Sep., 08:25, Thomas Ploch <profipl...@googlemail.com> wrote: > > > > > > > > > Well, for cake 1.3 it's completely legitimate to use the PHP4 syntax > > taken that the other classes are using the PHP4 syntax as well. > > > Kind regards > > Thomas > > > Am Montag, den 19.09.2011, 10:11 -0700 schrieb Miles J: > > > > Which Cake version are you using? > > > > Also on a side note, stop using PHP4 syntax. > > > > On Sep 19, 8:33 am, heohni <heidi.anselstet...@consultingteam.de> > > > 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 <profipl...@googlemail.com> wrote: > > > > > > Please bin your TranslatorComponent code > > > > > to:http://bin.cakephp.organdposttheurl to the group so we can check > > > > > what's going wrong. > > > > > > Kind regards > > > > > Thomas > > > > > > Am 19.09.2011 14:14, schrieb heohni: > > > > > > > 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<profipl...@googlemail.com> 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<profipl...@googlemail.com> > > > > > >>> 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php