You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use the asset extension, I have a public directory with index and htaccess and an assets directory, I am trying to load assets, CSS, js, and images from this directory and nothing is working for me.
<link rel="stylesheet" href="<?= $this->asset('/css/style.css') ?> should be <link rel="stylesheet" href="/assets<?= $this->asset('/css/style.css') ?> i think?
The asset extension doesn't return the full public path, so you still need to put that in the html, it you view the generated source and compare the generated url to the expected url you should see this - from your example the html does not include the public assets folder. I've created a pull request #318 to update the docs with the assets path.
I am trying to use the asset extension, I have a public directory with index and htaccess and an assets directory, I am trying to load assets, CSS, js, and images from this directory and nothing is working for me.
$engine->loadExtension(new League\Plates\Extension\Asset(BASE_PATH . '/public/assets', true));
The text was updated successfully, but these errors were encountered: