[TYPO3-german] Bildskalierung in TCA-wizards (Aufruf von Methoden aus tslib_pibase)
David Bruchmann
david at bruchmann-web.de
Tue Aug 18 16:00:44 CEST 2009
Dann hau vor der Funktion mal ein debug rein, dann siehst Du ob der
Array richtig definiert ist. ich schätze mal es liegt daran ...
----- Ursprüngliche Nachricht -----
Von: Rainer Schleevoigt <rainer at webmasterei-hamburg.de>
Gesendet: Dienstag, 18. August 2009 15:30:03
An: German TYPO3 Userlist <typo3-german at lists.netfielders.de>
CC:
Betreff: Re: [TYPO3-german] Bildskalierung in TCA-wizards (Aufruf von
Methoden aus tslib_pibase)
> David Bruchmann schrieb:
>
> Hallo,
>
> das Ding wird noch anstaltslos genommen:
>
> $this->local_cObj = t3lib_div::makeInstance('tslib_cObj');
>
> Allerdings wirft '$bar = $this->local_cObj->IMG_RESOURCE($imgConf);'
>
> Tue Aug 18 15:23:13 2009] [error] [client 82.113.106.240] PHP Fatal
> error: Call to a member function getFileName() on a non-object in
> /srv/www/htdocs/hausweb/typo3_src-4.2.8/typo3/sysext/cms/tslib/class.tslib_content.php
> on line 4641, referer: http://gsw.webmasterei.com/typo3/db_list.php?id=22
> [T
>
> Es sieht so aus, als ob $this->local_cObj kein Objekt ist.
>
> Rainer
>
>> ----- Ursprüngliche Nachricht -----
>> Von: Rainer Schleevoigt <rainer at webmasterei-hamburg.de>
>> Gesendet: Dienstag, 18. August 2009 14:59:52
>> An: German TYPO3 Userlist <typo3-german at lists.netfielders.de>
>> CC:
>> Betreff: Re: [TYPO3-german] Bildskalierung in TCA-wizards (Aufruf von
>> Methoden aus tslib_pibase)
>>
>>> David Bruchmann schrieb:
>>>
>>>> mhm, der Guifbuilder macht die Farbe von der Mütze so alt ;-)
>>>>
>>>> Die Konstruktion wird in u.a. tt_news verwendet, für Beispiele einfach
>>>> immer nach local_cObj suchen.
>>>>
>>>>
>>>>
>> require_once(PATH_tslib . 'class.tslib_content.php');
>>
>> class tx_irgendwas {
>>
>> function tu_was () {
>> $this->local_cObj = t3lib_div::makeInstance('tslib_cObj');
>> $param = $PA['row']['rot'];
>> if (!$param[0]) return null;
>> $images = array();
>> foreach($fooimages AS $img) {
>> $parts = explode('|',$img);
>> $imgConf = array();
>> $imgConf['file'] = $parts[0];
>> $imgConf['file.'] = array('maxW' => '360');
>> $image = $this->local_cObj->IMG_RESOURCE($imgConf);
>> array_push($images,$image);
>> }
>> }
>> }
>>
>>
>>
>>
>>> wirft leider 'Call to a member function getFileName() on a non-object '.
>>> Werde mal gurgeln, was '$this->local_cObj-' betrifft..
>>>
>> Lies besser das:
>> http://www.php.net/manual/de/language.oop5.php
>>
>> hatten wir neulich schon das Thema ;-)
>>
>>
>> Viele Grüße
>> David
>> _______________________________________________
>> TYPO3-german mailing list
>> TYPO3-german at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-german
>>
>>
>
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-german
>
More information about the TYPO3-german
mailing list