[TYPO3-english] extension developement and stdWrap

Stephan Petzl spetzl at gmx.at
Fri Jan 23 09:12:54 CET 2009


Dmitry Dulepov schrieb:
> Hi again!
> 
> Dmitry Dulepov wrote:
>> You should not override $this->cObj->data because it contains data belonging to the current object. You should create a new instance of the object:
>>
>> $cObj = t3lib_div::makeInstance('tslib_cObj');
>> $cObj->start($data);
> 
> And if $data is a row from the database, you can supply a table name as the second parameter to the $cObj->start() call. This will initialize some internal parameters properly. Example:
> 
> $cObj->start($row, 'tx_myext_tablename');
> 
oh, thanks very much!
is there some place where such things are documented?

BR Steph


More information about the TYPO3-english mailing list