Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn`t figure out how to link to a local files/libraries (images, css, js) #11

Open
Dr-help opened this issue Jul 26, 2021 · 5 comments

Comments

@Dr-help
Copy link

Dr-help commented Jul 26, 2021

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?

@Dr-help
Copy link
Author

Dr-help commented Jul 30, 2021

@thecodeholic could you kindly, suggest something to help!

@RobertoVasquez01
Copy link

did you solve the problem?

@thecodeholic
Copy link
Owner

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.

@RobertoVasquez01
Copy link

The framework is not the problem.
The problem is the configuration of the .htaccess file.

@thecodeholic
Copy link
Owner

Try this one.

​RewriteEngine​ On
​RewriteCond​ ​%{REQUEST_FILENAME}​ ​!-f
​RewriteCond​ ​%{REQUEST_FILENAME}​ ​!-d
​RewriteRule​ ​.​ ​index.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants