[TYPO3-ect] [tx_lib] is it a bug ?

Fabien Udriot fudriot at omic.ch
Tue Jul 10 01:21:29 CEST 2007


Ok, thanks, it works now. I had errors in my constants syntax :/

Very practical, in PHP :

$this->configurations->get('maximalItemsToDisplay');

Elmar Hinz a écrit :
> Fabien Udriot wrote:
> 
>> Hi Elmar !
>>
>> I looked in bananas but didn't find how do you get a value from a
>> constant. Could you point me, please, the file where I can find the
>> example.
>>
>> merci :)
>>
>> Fabien
>>
> 
> Hi Fabien, 
> 
> there is nothing special to do. It's the regular TS mechanism. See:
> 
> http://typo3.org/extensions/repository/view/bananas/0.0.6/info/configurations%252Fsetup.txt/
> 
> You find lines like this:
> 
> plugin.tx_bananas.controllers.form < plugin.tx_bananas.configurations
> 
> Here I copy the configuration to the path of the form.
> 
> You can use the constants in the normal way. Example:
> 
> plugin.tx_bananas.configurations.maximalItemsToDisplay  =
>                       {$plugin.tx_bananas.maximalItemsToDisplay}
> 
> 
> Regards
> 
> Elmar
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 


More information about the TYPO3-team-extension-coordination mailing list