Welcome Guest, Not a member yet? Register   Sign In
Add a .js file and routes
#10

If file saved as /public/js/menu.js and baseUrl equal http://domain.com/
<?= base_URL('js/menu.js'); ?> return http://domain.com/js/menu.js

This is a working option. If you get the wrong address in the source code, it means an error in the configuration. Your problem does not mean that the framework is bad, but just ignorance of its work. In 20 years, you could look at what is output to the source code and find a solution
Simple CI 4 project for beginners codeigniter-expenses ( topic )
Reply


Messages In This Thread
Add a .js file and routes - by arna - 08-10-2023, 06:58 PM
RE: Add a .js file and routes - by kenjis - 08-10-2023, 07:18 PM
RE: Add a .js file and routes - by ozornick - 08-10-2023, 10:36 PM
RE: Add a .js file and routes - by InsiteFX - 08-10-2023, 10:41 PM
RE: Add a .js file and routes - by arna - 08-11-2023, 07:30 AM
RE: Add a .js file and routes - by kenjis - 08-11-2023, 06:23 PM
RE: Add a .js file and routes - by sheilaf - 08-11-2023, 10:19 AM
RE: Add a .js file and routes - by arna - 08-11-2023, 11:02 AM
RE: Add a .js file and routes - by arna - 08-11-2023, 07:03 PM
RE: Add a .js file and routes - by ozornick - 08-11-2023, 08:40 PM
RE: Add a .js file and routes - by arna - 08-11-2023, 09:20 PM
RE: Add a .js file and routes - by InsiteFX - 08-11-2023, 10:39 PM
RE: Add a .js file and routes - by ozornick - 08-12-2023, 12:50 AM
RE: Add a .js file and routes - by kenjis - 08-12-2023, 02:45 AM
RE: Add a .js file and routes - by arna - 08-12-2023, 04:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB