Closed MarcelRobitaille closed 7 years ago
I suppose your template (home.pug) contains an asset
call, if this function is not declared, this failure is expected.
If you try to use the asset
function of Symfony, you should first install symfony then https://github.com/pug-php/pug-symfony
Else, please provide your template.
You are right. I am stupid. I copied the template from a node.js app where asset was defined. Sorry for wasting your time.
When I run the following code:
I get the following stack trace:
I get that for some reason the
asset()
function is missing, but after googling for a while I haven't been able to find any information on the function at all let alone the error.I installed the plugin as described in the README using composer.
php: 7.1.9 composer: 1.5.2
Sorry if this is a dumb question. I am being forced to use php and am not very good at it.