Welcome Guest, Not a member yet? Register   Sign In
file paths are wrong
#10

[eluser]mddd[/eluser]
I agree with Wanwizard: it's just good practice to build a system that will continue to work even if you add new stuff!
So using /assets (of however you like to call it) is better than switching by file type.

Also, don't forget you will still have to use complete paths in your view! If you try to load "assets/img/myimage.png" from a view, it will likely not work, unless you happen to be on the home page. Because the browser will request the file relative to the current location. See Wanwizard's first comment.


Messages In This Thread
file paths are wrong - by El Forum - 06-14-2010, 11:48 AM
file paths are wrong - by El Forum - 06-14-2010, 12:05 PM
file paths are wrong - by El Forum - 06-14-2010, 12:14 PM
file paths are wrong - by El Forum - 06-14-2010, 12:37 PM
file paths are wrong - by El Forum - 06-14-2010, 08:31 PM
file paths are wrong - by El Forum - 06-14-2010, 10:11 PM
file paths are wrong - by El Forum - 06-15-2010, 12:53 AM
file paths are wrong - by El Forum - 06-15-2010, 06:08 AM
file paths are wrong - by El Forum - 06-15-2010, 06:21 AM
file paths are wrong - by El Forum - 06-15-2010, 06:29 AM
file paths are wrong - by El Forum - 06-15-2010, 07:06 AM
file paths are wrong - by El Forum - 06-15-2010, 08:19 AM
file paths are wrong - by El Forum - 06-15-2010, 08:28 AM
file paths are wrong - by El Forum - 06-15-2010, 08:42 AM
file paths are wrong - by El Forum - 06-15-2010, 08:53 AM
file paths are wrong - by El Forum - 06-15-2010, 09:14 AM
file paths are wrong - by El Forum - 06-15-2010, 09:25 AM
file paths are wrong - by El Forum - 06-15-2010, 09:28 AM
file paths are wrong - by El Forum - 06-15-2010, 09:28 AM
file paths are wrong - by El Forum - 06-15-2010, 09:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB