mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
commit
fb0d349cee
@ -21,7 +21,7 @@ In your controller (e.g. `mysite/code/Page.php`):
|
|||||||
// either specify the css file manually
|
// either specify the css file manually
|
||||||
Requirements::css("mymodule/css/my.css", "screen,projection");
|
Requirements::css("mymodule/css/my.css", "screen,projection");
|
||||||
// or mention the css filename and SilverStripe will get the file from the current theme and add it to the template
|
// or mention the css filename and SilverStripe will get the file from the current theme and add it to the template
|
||||||
Requirements::themedCSS('print', 'print');
|
Requirements::themedCSS('print', null,'print');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user