I am very new and just learning PHP. I have a question. I would like the header file to change depending on the theme the user has. I have made a field on another page where the user types in the name of the theme they want to use. I typed in "default" and it's showing in the database as being there. The original looked like this:
Code: Select all
require_once("themes/Default/header.php");I've tried:
Code: Select all
require_once("themes/" . $a1[TemplateName] . "/header.php");Code: Select all
require_once("themes/$a1[TemplateName]/header.php");Thank you.