Fork me on GitHub


This returns the URL of a CSS style sheet that's in the specified plugin's app/public/ directory. If a file extension isn't given, a .css is appended, but this automatic behavior can be bypassed by setting the add_extension option to false, as shown below.

// This will return a URL that looks like the following:
echo mvc_css_url('events-calendar-example', 'my_style');

// This will prevent the ".css" from being appended:
echo mvc_css_url('events-calendar-example', 'my_style', array('add_extension' => false));