Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execute PHP code #230

Open
TheChaosToast opened this issue Dec 7, 2024 · 4 comments
Open

Execute PHP code #230

TheChaosToast opened this issue Dec 7, 2024 · 4 comments

Comments

@TheChaosToast
Copy link

hello,

is it somehow possible to run php code within news? I have a script that queries game servers whether they are online or offline. Unfortunately the php code in the news is not executed.

please help me :)

many thanks

@toster234
Copy link
Collaborator

@TheChaosToast
Copy link
Author

hello toaster,

thanks for the Quick reply :)

what should I do with the noescape? if I remove it completely with the |noescape or just leave |, I get the message that the page is no longer accessible.

@Wruczek
Copy link
Owner

Wruczek commented Dec 7, 2024

You should execute the code in index.php file, and pass the result into the template. Then you can display the result in index.latte

@TheChaosToast
Copy link
Author

OK, I have to try that first. Sounds a bit too complicated. but maybe it just sounds like that :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants