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?

  • OngJunYew
  • OngJunYew's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 2 months ago #210774 by OngJunYew
Can I write PHP code in Twig Template? was created 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.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago #210780 by DenisChenu
Replied by DenisChenu on topic Can I write PHP code in Twig Template?
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 service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • OngJunYew
  • OngJunYew's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 2 months ago #210781 by OngJunYew
Replied by OngJunYew on topic Can I write PHP code in Twig Template?
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.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago #210789 by DenisChenu
Replied by DenisChenu on topic Can I write PHP code in Twig Template?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose