[eluser]rochellecanale[/eluser]
How important is to set up the htaccess? Since i started using CI. I didn't set set up the htaccess. Bty the way thanks for the effort i will try another way. Thanks.
[eluser]LuckyFella73[/eluser]
You don't have to set up a htaccess file. I just guessed you did
because you often get simular error messages is you messed something
up there.
[eluser]rochellecanale[/eluser]
My controller does not do anything with the image it only calls my view
[eluser]rochellecanale[/eluser]
It display the same.
[eluser]CroNiX[/eluser]
I would only store the image name in the db. If you store the whole url including host name and dir paths, if you ever change servers (or dir structure) you have a lot of work to do since everything in the db would now be wrong. If you only store the filename, then nothing changes except you update one thing (the path), and you would just use site_url() for generating hostname portion.
For instance, you have everything hardcoded in the db for "localhost" server. What happens when you put this on a real server? None of that will work any longer.