|
|||
|
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. |
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|