|
Mailing Lists
|
Home /
Groups /
Mach-II
Img/CSS paths in Mach-II
Author: Merritt Chapman
Short Link: http://www.houseoffusion.com/groups/mach-ii/thread.cfm/threadid:78#210
Thanks Ben. Your solution worked. I had tried it earlier but the difference was
that I was running my app from within a sub folder of a website. I just moved
the entire app to the root and it worked fine.
Thanks again.
-Merritt
Author: Ben Densmore
Short Link: http://www.houseoffusion.com/groups/mach-ii/thread.cfm/threadid:78#209
I would put your images directory outside of the views directory. So it
sits under your application directory. Same thing with css, create a css
directory then you can call it from there. That is how I do mine anyway.
Ben
I have a quick question regarding the use of images and css files within
subfolders within the 'views' folder in the mach-ii framework. How can
I get image and external css files to display within the mach-ii
framework without adding 'view' to each of the folder paths. For
example, a file that is normally linked 'images/img1.jpg' will display
fine within dreamweaver, but not within the framework unless I append
'view' to the beginning of the path, 'view/images/img1.jpg'. This also
presents a problem with a site that relies on CSS for rendering
purposes.
Is there any way to tweak the way a site is designed with mach-ii to
allow css and images paths to work locally during development AND once
the files are posted to a webserver and rendered through mach-ii?
Thanks in advance!
_____
Author: Merritt Chapman
Short Link: http://www.houseoffusion.com/groups/mach-ii/thread.cfm/threadid:78#207
I have a quick question regarding the use of images and css files within
subfolders within the ‘views’ folder in the mach-ii framework. How can I get
image and external css files to display within the mach-ii framework without
adding ‘view’ to each of the folder paths. For example, a file that is normally
linked ‘images/img1.jpg’ will display fine within dreamweaver, but not within the
framework unless I append ‘view’ to the beginning of the path,
‘view/images/img1.jpg’. This also presents a problem with a site that relies on
CSS for rendering purposes.
Is there any way to tweak the way a site is designed with mach-ii to allow css
and images paths to work locally during development AND once the files are posted
to a webserver and rendered through mach-ii?
Thanks in advance!
|
May 24, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||