3.14.6 Plugin Images, CSS and Javascript
You can include plugin specific Images, Javascript and CSS files in your plugins. These asset files should be placed in your_plugin/webroot/img, your_plugin/webroot/css and your_plugin/webroot respectively. They can be linked into your views with the core helpers as well./js
<?php echo $html->image('/your_plugin/img/my_image.png'); ?>
<?php echo $html->css('/your_plugin/css/my_css'); ?>
<?php echo $javascript->link('/your_plugin/js/do_cool_stuff'); ?>
<?php echo $html->image('/your_plugin/img/my_image.png'); ?><?php echo $html->css('/your_plugin/css/my_css'); ?><?php echo $javascript->link('/your_plugin/js/do_cool_stuff'); ?>
The above are examples of how to link to images, javascript and CSS files for your plugin.
It is important to note the /your_plugin/ prefix before the img, js or css path. That makes the magic happen!
The method above is valid when mod_rewrite is used.


























