File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 44*
55* This file contains optional helper functions to make calling the library easier.
66* Recommended usage:
7- * 1. Copy the file to app/Helpers/assets_helper.php
8- * 2. Load the helper with `helper("assets")`
9- * 3. Call `css()` in <head> and `js()` before </body>
7+ * 1. Load the helper with `helper("assets")`
8+ * 2. Call `css()` in <head> and `js()` before </body>
109*
1110***/
1211
1514 // outputs all route-relevant and configured CSS tags, or
1615 // given a path outputs a single CSS tag
1716 function css (string $ file = null ) {
18- $ assets = new Tatter \Assets ();
17+ $ assets = new Tatter \Libraries \ Assets ();
1918
2019 // intercept requests for a single file
2120 if (is_string ($ file ))
@@ -26,11 +25,11 @@ function css(string $file = null) {
2625}
2726
2827if (! function_exists ('js ' ))
29- {
28+ {
3029 // outputs all route-relevant and configured JS tags, or
3130 // given a path outputs a single JS tag
3231 function js (string $ file = null ) {
33- $ assets = new Tatter \Assets ();
32+ $ assets = new Tatter \Libraries \ Assets ();
3433
3534 // intercept requests for a single file
3635 if (is_string ($ file ))
You can’t perform that action at this time.
0 commit comments