Welcome Guest, Not a member yet? Register   Sign In
Loading assets (js, css, ...)
#6

[eluser]Yash[/eluser]
[quote author="Dauntless" date="1223239978"]For the base_url() to work, all the .js files need to become .php files... Isn't there another way ?[/quote]

What are you saying. Totally incorrect.

You don't need to convert .js into .php.

Do something like this

create js folder where you have index.php .

Now

<*script type="text/javascript " src="&lt;?=base_url()?&gt;/js/file.js" *> <*/script*>

Got it mate.

remove *


Messages In This Thread
Loading assets (js, css, ...) - by El Forum - 10-05-2008, 03:04 AM
Loading assets (js, css, ...) - by El Forum - 10-05-2008, 08:05 AM
Loading assets (js, css, ...) - by El Forum - 10-05-2008, 09:10 AM
Loading assets (js, css, ...) - by El Forum - 10-05-2008, 09:52 AM
Loading assets (js, css, ...) - by El Forum - 10-05-2008, 09:57 AM
Loading assets (js, css, ...) - by El Forum - 10-05-2008, 10:24 AM
Loading assets (js, css, ...) - by El Forum - 10-05-2008, 10:29 AM
Loading assets (js, css, ...) - by El Forum - 10-05-2008, 10:34 AM
Loading assets (js, css, ...) - by El Forum - 10-05-2008, 10:41 AM
Loading assets (js, css, ...) - by El Forum - 10-05-2008, 11:04 AM
Loading assets (js, css, ...) - by El Forum - 10-05-2008, 12:12 PM
Loading assets (js, css, ...) - by El Forum - 10-05-2008, 01:59 PM
Loading assets (js, css, ...) - by El Forum - 10-05-2008, 02:03 PM
Loading assets (js, css, ...) - by El Forum - 10-05-2008, 02:05 PM
Loading assets (js, css, ...) - by El Forum - 10-05-2008, 02:06 PM
Loading assets (js, css, ...) - by El Forum - 10-05-2008, 02:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB