Closed multiplehats closed 6 years ago
Hey all,
Thanks for this great starter theme! Loving it so far.
I'm on a brand new WP install and a clean Tonik.
I'm following the docs and trying to:
use function Tonik\Theme\App\asset; $path = asset_path('css/app.css');
However, it returns: Fatal error: Uncaught Error: Call to undefined function asset_path()
Fatal error: Uncaught Error: Call to undefined function asset_path()
How come?
Okay. Boom, I got it working. I was a bit confused for a sec. Thanks 👍
There is an error in documentation. You have to import proper asset_path function like this:
asset_path
use function Tonik\Theme\App\asset_path;
Hey all,
Thanks for this great starter theme! Loving it so far.
I'm on a brand new WP install and a clean Tonik.
I'm following the docs and trying to:
However, it returns:
Fatal error: Uncaught Error: Call to undefined function asset_path()
How come?