Welcome Guest, Not a member yet? Register   Sign In
[solved] accessing images in the view (strange behaviour)
#2

[eluser]BrianDHall[/eluser]
Your problem is with file_exists(): http://php.net/manual/en/function.file-exists.php

It expects a relative path to the file on your system, not an HTTP:// style url - which is what base_url is giving you.

I believe you can try getting rid of the base_url portion and just feed it the image path of img/image.jpg, as it is all relative to the front-controller index.php file unless specified otherwise.


Messages In This Thread
[solved] accessing images in the view (strange behaviour) - by El Forum - 11-02-2009, 07:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB