Accessing CSS and JS for views |
You don't show how you assign a value to the variable $base_url.
Could it be that when you typed Code: <script type="text/javascript" src="<?php echo $base_url . "assets/js/mdb.min.js"?>"></script> you really meant this? Code: <script type="text/javascript" src="<?php echo base_url("assets/js/mdb.min.js"); ?>"></script>
Yes - precisely. I have just discovered that! Lots of learning going on!
Thanks to all who who have posted here - much appreciated!
@MightBeABitLate,
Using the following would make the script just that little bit more faster because it does not need to call the base_url() function. echo VIEWPATH .'...'; |
Welcome Guest, Not a member yet? Register Sign In |