[TYPO3-german] OO-hilfe

RenéŽ Kockisch rene.kockisch at tu-cottbus.de
Tue Aug 14 11:01:15 CEST 2007


Michael Stein schrieb:
> Hallo zusammen,
> ich weiß, dass das hier ein bisschen Off-topic ist, aber ich habs in einer
> t3-extension gefunden:
> $this->$modus =
> $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'what_to_display',
> 'sGENERAL');
> 
> Das bringt:
> Fatal error: Cannot access empty property in ....file
> 
> was macht die Teil: $this->$modus?
> Was ist der Unterschied zu: $this->modus?
> 
> Gruß Michael


Hallo Michael,

also ich würd da mal auf nen Schreibfehler in der Ext tippen :-)

$ ist ein präfix welches eine Variable einleitet und -> ist eine 
Zuweisung die auf ein Atribut eines Objektes (in dem Fall this) zeigt, 
da hat ein $ nix zu suchen da die Variable schon eingeleitet wurde.

mfg René





-------------------------------------------------------------------
Kosys - Kockisch ITK Systems and Services
Inh. Kockisch René

Görlitzer Str. 22
03046 Cottbus

Tel.: 0355/ 430 903 81
Fax.: 0355/ 430 903 84


Internet: www.kosys-cottbus.de
E-Mail: rene-kockisch at kosys-cottbus.de


More information about the TYPO3-german mailing list