[SOLVED] Add PHP code inside page?

Ask for help or provide support to other members.
Post Reply
margas
Posts: 1
Joined: Wed Apr 20, 2022 5:15 pm

[SOLVED] Add PHP code inside page?

Post by margas »

Hey!

I hust found WonderCMS and i am really really excited!

I just started playing around and it is perfect for my needs :)

One quick question. Is it possible to add custom PHP inside a page?

I would like to fetch some data from my mysql db and present them in a beautiful way with WonderCMS.



Thank you and congratz for the excellent job you have done!
User avatar
wiz
Posts: 749
Joined: Sat Oct 30, 2010 12:23 am

Re: Add PHP code inside page?

Post by wiz »

Hello margas, welcome to the community!

The easiest way to achieve this is to implement/call it directly in your theme.php file, otherwise you'd have to make modifications to the default HTML editor, which will trim out some of your PHP code.

Thank you and glad you're enjoying it. :)
Post Reply