I'm trying to add a name into a defined filepath like this -
define("theme_name", "andrew");
define("LAYOUT_DIR", ROOT_DIR.'_content/layouts/themes/<?php echo $theme_name;?>/');
I get an error that the path does not exist when it is executed but the "andrew" folder does exist.
I tried joining with dots instead of echo and still got this error.
Full error message
Fatal error: Uncaught exception 'Twig_Error_Loader' with message 'The "G:\Uwamp\www\lightbulb_edison/../_content/layouts/themes/ . $theme_name . /" directory does not exist.' ````
echois not meant for joining variables. And<?phpis pointless within a string or expression. And yourtheme_nameis a constant too, not a variable.