[TYPO3-dev] Adding parameters to t3lib_div::makeInstance

Sebastian Böttger sebastian.boettger at gmail.com
Sat Oct 27 17:14:51 CEST 2007


Hi Franz,

yes I know. I did init it like that. I just saw it in the bug tracker ;-).

Best regards,
Sebastian Böttger




Franz Koch schrieb:
> Hi,
>
>   
>> I just came across three bug issues posted by Dmitry in the bug tracker.
>>
>> 0006487: tx_commerce_category does not use t3lib_div::makeInstance
>> Line 436:
>>
>> $category= new tx_commerce_category($oneCategoryUid,$this->lang_uid);
>>
>> and two analogous issues.
>> The problem is, that
>>
>> tx_commerce_category
>>
>> needs params for the contructor to work.
>>     
>
> that's not entirely correct. In commerce you can add parameters to the 
> constructor, but you can also call the init method of the class and add 
> the parameters there. Just as hint :-)
>
>   
>> Imho there s nothing to be said against adding the possibility of 
>> parameters to t3lib_div::makeInstance.
>>     
>
> But you're right - it would be nice to have that feature.
>
> --
> Greetings,
> Franz Koch
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>   




More information about the TYPO3-dev mailing list