How to call other .php files into template.html How to call other .php files into template.html
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

How to call other .php files into template.html

Started by Hanna., March 30, 2023, 05:12:30 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Hanna.

I'm trying to add this:

Quote<?php  include "./welcome.php";?>

into template.html but it won't display. I need to be able to include/import php files in the template to save myself each time I change the theme colors/layout.

Please advise.

ron4mac

You can not run PHP code from an .html file.

See here for adding custom PHP code.

Hanna.

You can close this topic. I was able to locate the plugin that you provided me a while back in regards to this. Thanks!

Hanna.