D
D
Dmitry Krichilsky2016-01-27 00:43:23
PHP
Dmitry Krichilsky, 2016-01-27 00:43:23

How to connect css, js files to PHPStorm project?

Created an empty project in PHPStorm.
In the project, I created directories public/css, public/js containing the corresponding files.
I created several separate php files where I include css and js files.
Using the require method, I collect these pieces on one page, and when outputting to the browser, HTML markup is present, but the js and css files are not connected. The browser reports that no files were found.
Please tell me what could be the issue. Not properly configured IDE or MAMP?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2016-01-27
@VladimirAndreev

the file path is incorrect.
the path to css/js must be written from the place that is the root of the web server, and not the root of the project.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question