我正在使用Symfony 2,我想从服务类生成绝对URL,而不是模板.我想要同样的事情
{{ asset('/path/to/my/asset') }}
会在模板中返回.
这可能吗?
php symfony
php ×1
symfony ×1