Image Symfony2:如何更改Assetic'生成的基本url/主机名;是否将s asset()函数转换为localhost?
我从生产服务器下载了一个项目 现在,图像渲染为Image Symfony2:如何更改Assetic'生成的基本url/主机名;是否将s asset()函数转换为localhost?,image,symfony,assets,assetic,Image,Symfony,Assets,Assetic,我从生产服务器下载了一个项目 现在,图像渲染为 <img src="{{ asset('uploaded_images/') }}{{ variable.getPath() }}"> 。。。返回404错误,因为生成的URL仍然包含生产服务器的域 如何将生成的URL的主机名更改为localhost?以便所有资产('..')路径使用localhost作为主机名 。。。调整设置 config.yml framework: templating: asset
<img src="{{ asset('uploaded_images/') }}{{ variable.getPath() }}">
。。。返回404
错误,因为生成的URL仍然包含生产服务器的域
如何将生成的URL的主机名更改为
localhost
?以便所有资产('..')
路径使用localhost
作为主机名
。。。调整设置
config.yml
framework:
templating:
assets_base_url:
http: 'http://localhost'
ssl: 'https://localhost'
为了使所有
资产(“..”)
路径使用localhost
作为主机名
。。。调整设置
config.yml
framework:
templating:
assets_base_url:
http: 'http://localhost'
ssl: 'https://localhost'