我从生产服务器下载了一个项目。
现在用..。
<img src="{{ asset('uploaded_images/') }}{{ variable.getPath() }}">..。返回一个404错误,因为生成的URL仍然包含生产服务器的域。
如何将生成的URL的主机名更改为localhost
发布于 2014-09-22 11:08:57
为了让所有的asset('..')路径使用localhost作为主机名.
..。调整framework.templating.assets_base_url设置。
config.yml
framework:
templating:
assets_base_url:
http: 'http://localhost'
ssl: 'https://localhost'https://stackoverflow.com/questions/25972325
复制相似问题