Skip to content

Commit 748c853

Browse files
committed
tweak namespaces for automagic CI4 calls
1 parent 717a922 commit 748c853

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/Helpers/assets_helper.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
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

@@ -15,7 +14,7 @@
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

2827
if (! 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))

0 commit comments

Comments
 (0)