Right but if you are installin xhgui as a dependency, are you doing that to get at the external/header.php, or to run the xhgui frontend? 

Be aware that xhgui is not intended to be exposed to the public internet, as it can expose possibly sensitive details about how your application is implemented.