0
Welcome Guest! Login
0 items Join Now

SOLVED Adding PHP to custom html particle

  • SOLVED Adding PHP to custom html particle

    Posted 7 years 2 months ago
    • I've searched documentation but cannot find anything regarding adding php into particles. I attempted to do so and the results are unexpected after echoing out a test statement the output shows the string but then also adds the last " and ; ?> .
      Can anyone shed light on if this is possible and if so is there an extension that is required?
      The reason behind wanting to place php in the custom html particle is to process a form I have built.
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 21565
    • Thanks: 3091
    • messin' with stuff

    Re: SOLVED Adding PHP to custom html particle

    Posted 7 years 2 months ago
  • Re: SOLVED Adding PHP to custom html particle

    Posted 7 years 2 months ago
    • I'll do that. I am completely unfamiliar with TWIG. Is there a big learning curve?
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 21565
    • Thanks: 3091
    • messin' with stuff

    Re: SOLVED Adding PHP to custom html particle

    Posted 7 years 1 month ago
    • Not at all IMO... if you understand PHP then TWIG should be a breeze... you can search Sensio's doc for whatever PHP element you're after and it should return the corresponding TWIG
    • Last Edit: 7 years 1 month ago by Matt.
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
  • Re: SOLVED Adding PHP to custom html particle

    Posted 7 years 1 month ago
    • Cool! Thanks.

Time to create page: 0.039 seconds