Jump to content

Convert to php variable - acarsmap.php


Recommended Posts

In the acarsmap.php file a text appears as we can use a series of variables to put in the HTML, ok. But I would like from acarsmap.php to call a function that I have in php but passing one of those variables to it, I don't see the way to do it. Can anybody help me?

I thought that maybe I could do it if I manage to convert <%=flight.pilotid%> it to a php $ variable, then I pass that variable in the function and that's it, but I don't know how to convert it.




I'm usign simpilot/php7.2

Link to comment
Share on other sites

On 9/12/2020 at 1:34 AM, web541 said:

You should be able to modify this function in PHP:



which is read here:



and it should allow you to use the templating tags.

Thank you very much, it is just what I was looking for. once again thanks for the contribution.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...