Hmm,  I created "main.css" within /app/plugins/myplugin/vendors/css.
Within "index.ctp", which is located within the associated
controller's view for the plugin, I call the css() method of the HTML
helper as per the following:

<?php $html->css('main', 'stylesheet', array('media'=>'all'), false); ?
>

Instead of attempting to load /myplugin/css/main.css, the function
loads /css/main.css.  Any idea how I can resolve this?  Thanks! :)


On May 22, 9:00 am, "b logica" <[EMAIL PROTECTED]> wrote:
> If your forum images are displayed using only your CSS (ie.
> background-image) then you're good to go. Just put store them within
> an images dir inside the CSS dir and set all the URLs without any
> leading slash and they'll be fetched from there.
>
> In fact, you'd be half way toward making the forum more easily skinnable.
>
> On Thu, May 22, 2008 at 3:15 AM, Dr. Tarique Sani <[EMAIL PROTECTED]> wrote:
>
> > On Thu, May 22, 2008 at 12:41 PM, Matt Huggins <[EMAIL PROTECTED]>
> > wrote:
>
> >> Is it possible to provide images (and other files, such as CSS
> >> stylesheets) with a plugin, such that they are accessible via a URL in
> >> HTML (such as an IMG tag)?  I'm working on a forum plugin, and I'd
> >> like it to be as easy to distribute as possible.  Since I use some
> >> forum-specific images and stylesheets, I'd like to package these up in
> >> the plugin, but I'm not sure if it's possible.
>
> > Images - not possible
>
> > CSS and JS - put in the vendor of plugin
>
> > Tarique
>
> > --
> > =============================================================
> > Cheesecake-Photoblog:http://cheesecake-photoblog.org
> > PHP for E-Biz:http://sanisoft.com
> > =============================================================
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to