php-mvc-framework
php-mvc-framework copied to clipboard
Couldn`t figure out how to link to a local files/libraries (images, css, js)
Hello there,
thanks a lot for the the great course and the lovely educational materials. Im learning an experimenting with the framework and couldnt figure out how to modify the code to link to local js, css files instead of the online ones (JQuery, Bootstrap ..etc).
I tried all the tricks I know, with no avail. could you please help with that?
@thecodeholic could you kindly, suggest something to help!
did you solve the problem?
If you have a look at layout files - like this one you can see how it includes the local CSS file.
Your CSS/JS or any static files must be inside public folder.
Please let me know if you find the answer.
The framework is not the problem. The problem is the configuration of the .htaccess file.
Try this one.
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php