Hey.
I had the same problem a couple of days ago. The cakephp book has
section explaining this...
http://book.cakephp.org/view/742/Plugin-Images-CSS-and-Javascript
Basically rename your PluginName/webroot directory to PluginName/
vendors. The in your css you can do background:
Hi,
I have images in img folder in webroot of my plugin, but images aren't
load when links from css file also in plugin. This is problem when
making theme. I must put img in default img folder of site, not under
plugin webroot folder.
Is there solution?
Check out the new CakePHP Questions site
Treat the plugin/webroot the same as app/webroot:
Images in img, css in css, javascript in js, etc.
Did you put them in the 'img' directory ?
On Apr 27, 12:21 am, Ziki zixw...@gmail.com wrote:
Hi,
I have images in img folder in webroot of my plugin, but images aren't
load when links from css
yes, but when I have in my css file something like this:
background: url(/img/bg.gif);
that can not be loaded from plugin img directory, problem is just
links in css files.
On 27 tra, 03:23, jacmoe jac...@mail.dk wrote:
Treat the plugin/webroot the same as app/webroot:
Images in img, css in
replace {PluginName} with your plugin name :)
background: url({PluginName}/img/bg.gif);
or
background: url(../img/bg.gif);
plugin webroots serve files from example.com/{PluginName}/(css|js|img)/
you can speed up the serving of these files by copying them from the plugin
webroot dir into a