How to embed php code in min.js file

👍:1

It doesn’t work like that, you don’t embed php in a javascript, it is the other way round, you embed js in a php file.

PHP runs in the server and it is served to the client as html (+js +css), you should include your min.js in the php file wherever you want to render it the same way you are including Chart.min.js

Leave a comment