Hey,
Ok I think this is a simple fix but can't seem to get this working.
I have a main functions.php page which at the moment only contains the following:
define("ROOT","/my/site/root/",TRUE);
Then, on my php page I have a selection of php include functions that use this constant such as:
include(constant("ROOT")."docs/inc_head.php");
as you can see I am including the head of my page (constant throughout my website)
This works great!.........however......
in inc_head.php I have such info as meta info and links to css stylesheets.....This is the problem, when I try to use the ROOT constant again here I get nothing, the stylesheet is not found:
<link rel="stylesheet" type="text/css" href="<?php echo constant("ROOT")."assets/css/style.css";?>" />
Any thoughts as to why this doesn't work? is it because I am using it within html, instead of php?
Thanks a bunch.