Welcome Guest, Not a member yet? Register   Sign In
Please describe how to achieve the best structure
#7

[eluser]gvillavizar[/eluser]
[quote author="MellanCOOLic" date="1237838665"]First of all, i must say that this is my first try with the CI. I have parse all the documentation needed.. watched movies.. and so on.

But I have encounter a probably verry simple to fix issue (for others). But i can't figure it out. So.. i decided to join this comunity for some help.

The thing is that someone else is helping me with html-ization. So... basicaly, i get the html's all done. But they are comming with relatives path like this:
Code:
<img src="images/header/img.jpg" width="728" height="90" />
So.. basicaly.. i'm not using img() from HTML Helper. Due to all the html's using this path, i had to create a folder on root directory named "images" and put there all the images file and folders. I don't have any problems with the locations of those files, but my problems is that html's are located in the system/application/views directory. So.. basicaly... when i'm opening one view with my editor in design mode.. i can't see any of those images.

The thing to do.. is moving all the image folder.. right in the views folder. This way, i will see html's corectly in my editor. But doing so.. is killing my view in browser. The browser will basicaly try to find some images according to the address displayed on browser. And CI is using his own rules for uri.

The question is ... what can i do so that i keep the images in the views file and redirect the image urls to that folder ? is there a rooting solution ? or .htaccess can do some magic ?

I apologies in advance for asking this probably dumb question.. but i could'nt figure it out myself.[/quote]

Hi, try copying your images inside your views (in your local folder) and in your root (in your remote folder), so you will have two different image folders but while developing you will be faster. After you're finished. Just delete the folder in your views.


Messages In This Thread
Please describe how to achieve the best structure - by El Forum - 03-12-2009, 11:12 AM
Please describe how to achieve the best structure - by El Forum - 03-12-2009, 11:21 AM
Please describe how to achieve the best structure - by El Forum - 03-12-2009, 02:55 PM
Please describe how to achieve the best structure - by El Forum - 03-13-2009, 10:52 AM
Please describe how to achieve the best structure - by El Forum - 03-23-2009, 09:04 AM
Please describe how to achieve the best structure - by El Forum - 03-25-2009, 03:11 AM
Please describe how to achieve the best structure - by El Forum - 03-25-2009, 06:55 AM
Please describe how to achieve the best structure - by El Forum - 03-25-2009, 07:15 AM
Please describe how to achieve the best structure - by El Forum - 03-25-2009, 07:19 AM
Please describe how to achieve the best structure - by El Forum - 03-25-2009, 07:41 AM
Please describe how to achieve the best structure - by El Forum - 03-25-2009, 05:32 PM
Please describe how to achieve the best structure - by El Forum - 03-27-2009, 01:58 PM
Please describe how to achieve the best structure - by El Forum - 03-27-2009, 08:37 PM
Please describe how to achieve the best structure - by El Forum - 06-23-2009, 12:17 AM
Please describe how to achieve the best structure - by El Forum - 06-23-2009, 02:31 AM
Please describe how to achieve the best structure - by El Forum - 06-26-2009, 12:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB