With $ GLOBALS it might solve your problem.
$ GLOBALS is a super global variable which is used to access global variables from anywhere in the PHP script (also from within functions or methods).
It would look something like this:
$GLOBALS['BASEDIR'] = '/seus/assets';
And on your front:
<link rel='stylesheet' href='<?php echo $GLOBALS["BASEDIR"];?>/css/qualquer.css'/>
In all your assets, you use the same expression for the base dir:
<?php echo $GLOBALS["BASEDIR"];?>
Dai, if by chance your folder structure changes, you just need to change the GLOBALS basedir.
I hope I have helped.