I have, more or less, have these structure
templates
test.group
index.html
another-file.html
assets
styles
foo.css
scripts
bar.js
As you can see, I put some Javascript and CSS files into a template folder in JS.
I have reasons for this so let's say this is our goal.
I need to include foo.css
and bar.css
. To access it, I tried
<link href="{site_url}index.php/test/assets/styles/foo.css" rel="stylesheet" type="text/css" />
<script src="{site_url}index.php/test/assets/scripts/bar.js" type="text/javascript"></script>
But this does not work. What I saw was the contents of index.html
.
Which is the correct result if you follow EEs template structure.
But I want to bypass this. I want to be able to access the css and js file.
Is there a way to do this?