I am developing an application in XAMPP with PHP and JS.
I have the folders arranged in this order:
1) app/asset/css
(I save the css files, 'bootstrap' and my main one)
2) app/asset/dist
(I save the js files, 'bootstrap', 'jquery' and my main 'main.min.js')
3) app/asset/resources
(I save the image files, icons, etc)
4) app/module/index
(I save the php modules as 'footer', 'head', (main))
5) app/module/juego
(I save the basic php modules of the game)
6) app/index.php
(Main file that links all the content)
7) the rest I do not think they matter because they are Sass folders and the Js that I minifigure with Gulp.
Now, what's my problem?
When I want to check if my 'main.min.js' file is correctly linked to index.php, it does not return information from me, nor does it give an error message.
The only files that respond are those of bootstrap.min.js
and jquery.min.js
since I am occupying its functionalities.
But of the main.min.js
I do not receive any response by console.
How am I linking it?
My index.php file looks like this:
<?php
require 'module/index/head.php';
require 'module/index/header.php';
require 'module/index/conn.php';
?>
<h1 id="tituloPrincipal" class="text-center">Titulo de Proyecto</h1>
<div id="cajaPrincipal">
<?php
require 'module/juego/menu.php';
require 'module/juego/pantallaMenu.php';
?>
</div>
<?php
require 'module/index/footer.php';
?>
How is the Footer
written?
<script src="asset/dist/jquery-3.2.1.min.js"></script>
<script src="asset/dist/bootstrap.min.js"></script>
<script scr="asset/dist/main.min.js"></script>
</body>
</html>
What is the error?
The truth that I do not know that it can be ... as I say, it takes me the other Javascript files that it occupies bootstrap saving mine 'main.min.js'.
If I check the source code it shows me that my file is written in the index.php
(although I do not recognize the console.log sent to it), the difference is that the other two (bootstrap) files stand out as less link mine.