$html->css pulls from /concrete/css?
Permalink
Hey guys,
Making a Single_Page and fighting my way through it... The HTML helper has functions for adding Javascript and CSS files which I am trying to take advantage of. Including javascripts seems to to work as expected, but the css function wants to pull from /concrete/css and not the /css in the root. Any tips for this newbie or have I discovered a bug?
Actual output:
Why doesnt the css function look in the root /css directory?
Making a Single_Page and fighting my way through it... The HTML helper has functions for adding Javascript and CSS files which I am trying to take advantage of. Including javascripts seems to to work as expected, but the css function wants to pull from /concrete/css and not the /css in the root. Any tips for this newbie or have I discovered a bug?
# HTML Helper $html = Loader::helper('html'); # Include CSS Files $this->addHeaderItem($html->css('designer.css', 'css')); # Include JS Files $this->addHeaderItem($html->javascript('ThreeJS/three.min.js', 'js' )); $this->addHeaderItem($html->javascript('ThreeJS/Detector.js', 'js' )); $this->addHeaderItem($html->javascript('ThreeJS/libs/tween.min.js', 'js' )); $this->addHeaderItem($html->javascript('ThreeJS/loaders/ColladaLoader.js', 'js' )); $this->addHeaderItem($html->javascript('designer.js'));
Actual output:
<link rel="stylesheet" type="text/css" href="/vse_c5/concrete/css/designer.css?v=e59e6260e097c63e0e440c7fe3c5f626" /> <script type="text/javascript" src="/vse_c5/js/ThreeJS/three.min.js?v=e59e6260e097c63e0e440c7fe3c5f626"></script> <script type="text/javascript" src="/vse_c5/js/ThreeJS/Detector.js?v=e59e6260e097c63e0e440c7fe3c5f626"></script> <script type="text/javascript" src="/vse_c5/js/ThreeJS/libs/tween.min.js?v=e59e6260e097c63e0e440c7fe3c5f626"></script> <script type="text/javascript" src="/vse_c5/js/ThreeJS/loaders/ColladaLoader.js?v=e59e6260e097c63e0e440c7fe3c5f626"></script> <script type="text/javascript" src="/vse_c5/js/designer.js?v=e59e6260e097c63e0e440c7fe3c5f626"></script>
Why doesnt the css function look in the root /css directory?
The rookiest of rookie mistakes, I typed the filename wrong, and it defaulted to the concrete/css directory even though the file didnt exist.