Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-28-2008, 06:29 AM
Member
 
Join Date: Feb 2008
Posts: 46
Question Relative Path Problem makes Style Sheet disable.

Hi,

I am using "../../../js/calendar.js" relative path to include the css , js , images in my view's phtml pages. So, where i have to keep my images , js, css folder and files to link directly with out depends on the request i.e: images/abdc.jpg.
And tell me where to keep my images, css, js folders.
- mugesh.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-03-2008, 09:36 AM
Junior Member
 
Join Date: Mar 2008
Posts: 4
Default

You place your css and script folders inside the webroot of your app. If your webroot is called html, which it is if you use a default directory structure, then your css will be in html/css.

In your viewscript, you must specify /css/mystyles.css with the slash at the beginning of the file path. If you do not add the opening slash, you will get a problem like you describe.

Bart McLeod
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-03-2008, 01:58 PM
xentek's Avatar
Senior Member
 
Join Date: Feb 2008
Posts: 112
Default

Figure out where your webroot is, then absolute path off of that. It could be different if you customized your directory layout.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:49 AM.