Welcome Guest, Not a member yet? Register   Sign In
Best place to put jquery file
#11

[eluser]Unknown[/eluser]
The way public resources like js or css should be handled is this:

1) make a public folder in the root file
2) make folders for each resource types
3) if you mod_rewrite make a roule for that public folder
4) use relative paths from the index.php (from root) to public folders like
/public/js/cool.js

As simple as that Smile

Xtreaming CI


Messages In This Thread
Best place to put jquery file - by El Forum - 12-22-2010, 04:22 PM
Best place to put jquery file - by El Forum - 12-22-2010, 05:07 PM
Best place to put jquery file - by El Forum - 12-22-2010, 05:13 PM
Best place to put jquery file - by El Forum - 12-22-2010, 08:58 PM
Best place to put jquery file - by El Forum - 12-22-2010, 08:59 PM
Best place to put jquery file - by El Forum - 12-23-2010, 03:13 PM
Best place to put jquery file - by El Forum - 12-23-2010, 05:37 PM
Best place to put jquery file - by El Forum - 12-24-2010, 06:29 AM
Best place to put jquery file - by El Forum - 12-24-2010, 08:41 AM
Best place to put jquery file - by El Forum - 12-24-2010, 08:14 PM
Best place to put jquery file - by El Forum - 12-28-2010, 09:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB