I'm reading the documentation, but i've not clear how to load all my assets files. I've noticed that if I set the correct path for my css and js files, they will not be loaded.
here is my code. Any suggestion and explaination will be appreciated.
define('ROOT', __DIR__); // this constant is defined inside my front controller
// this is how I'm loading the asset method inside the controller class
$this->view = new \League\Plates\Engine( ROOT.'/assets/templates' );
$this->view->loadExtension(new \League\Plates\Extension\Asset( ROOT, true));
I'm reading the documentation, but i've not clear how to load all my assets files. I've noticed that if I set the correct path for my css and js files, they will not be loaded.
here is my code. Any suggestion and explaination will be appreciated.
view file
I've got this error: