madeyourday / contao-rocksolid-custom-elements

RockSolid Custom Elements Contao Extension
http://rocksolidthemes.com/de/contao/plugins/custom-content-elements
MIT License
48 stars 12 forks source link

how to store functions to be used in template file #62

Closed rocchidavide closed 8 years ago

rocchidavide commented 8 years ago

Hi, in some rsce_ templates i use the same php code (curl stuff) to get some information. I'd like to write a function that encapsule this code, but I'm not sure where to store it (and how to call it in the template). Suggests?

ausi commented 8 years ago

Please refer to the Contao community forum for such general questions.