• Resolved pzh20

    (@pzh20)


    I have inserted a php snippet, selected Custom Functions, selected backend and Administrator, but the code is showing at the top of all pages on the backend as text.

    Do I need the <php></?> tags

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter pzh20

    (@pzh20)

    Actually, with or without the <php></?> it still shows as text

    Plugin Author Bilal TAS

    (@bilaltas)

    Hi @pzh20,

    Yes, you need to start with PHP tags as follows:

    <?php

    your php codes here…

    That is because someone might need to add some HTML codes with PHP codes in it. That’s why starting with opening PHP tag is optional according to usage scenario.

    I hope this answers your questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP code showing as text’ is closed to new replies.