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

You should keep all your resources in a folder called assets in the public folder.

PHP Code:
<!-- JavaScropt here for Faster Page Loading. -->
 <
script src="<?= base_URL('assets/bootstrap/js/bootstrap.bundle.min.js'); ?>"></script
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
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