Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Can I write PHP code in Twig Template?

More
4 years 7 months ago #210774 by OngJunYew
Hi,

In this thread, may I ask that can we write any php code in the Twig Template. Because when I am writing some php code in the Twig Template and click save it the php tag will disappear from <?php ?> to php ?>

Thank You
The topic has been locked.
More
4 years 7 months ago #210780 by DenisChenu
No,

It's the reason of twig : don't give all PHP power with a simple editor.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
4 years 7 months ago #210781 by OngJunYew
Hi,

Thanks for the reply. If the case, can I know what kind of functional programming code that can be work in Twig Template?

Thank You
The topic has been locked.
More
4 years 7 months ago #210789 by DenisChenu

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose