Welcome Guest, Not a member yet? Register   Sign In
trailing slash problem [Solved]
#3

[eluser]Colin Williams[/eluser]
Why do you insist on a relative path? There are functions like base_path() to guide you along, and you can always create config items when you need to

Code:
<image src="&lt;?= config_item('image_path') . $image->filename ?&gt;" alt="" />

(used <image> tag because the forum filter gobbles up < i m g > tags)

So, take your pick: A simple configuration item; A 12-line function


Messages In This Thread
trailing slash problem [Solved] - by El Forum - 01-17-2009, 11:01 AM
trailing slash problem [Solved] - by El Forum - 01-18-2009, 04:47 AM
trailing slash problem [Solved] - by El Forum - 01-18-2009, 05:11 AM
trailing slash problem [Solved] - by El Forum - 01-18-2009, 06:17 AM
trailing slash problem [Solved] - by El Forum - 01-18-2009, 08:55 AM
trailing slash problem [Solved] - by El Forum - 01-18-2009, 11:20 PM
trailing slash problem [Solved] - by El Forum - 01-19-2009, 01:43 AM
trailing slash problem [Solved] - by El Forum - 01-19-2009, 01:50 AM
trailing slash problem [Solved] - by El Forum - 01-19-2009, 02:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB