![]() |
"<?= base_URL('js/menu.js'); ?> return http://domain.com/js/menu.js"
Which is bad because it doesn't work at all, even if I create a js folder in my root and pu the menu.js inside. The thing is precisely that CodeIgniter doesn't work at all the same way I worked for last 20 years with web pages. In the past when I was asking for /public/js/menu.js I simply got /public/js/menu.js and that's all. Now in CodeIgniter it's so crazy that 2 monthes and 400+ hours of work on the CodeIgniter framework, I have an online website working well with people coming to play on, but I still don't understand how Routes work and why I got so many bugs. And as I'm often creating new pages and fonctionnalities, that's awful. So probably I am hyper stupid. Or the CI framework is not that clever. Or both. |
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
|