Skip to content

Instantly share code, notes, and snippets.

@COil
Created February 9, 2012 13:10
Show Gist options
  • Save COil/1779871 to your computer and use it in GitHub Desktop.
Save COil/1779871 to your computer and use it in GitHub Desktop.
PR Symfony, add a baseServerUrl() function in Request
<div>
<a href="{{ job.url }}">
<img src="{{ app.request.scheme ~ '://' ~ app.request.host }}{{ asset(job.webPath) }}"
alt="{{ job.company }} logo" />
</a>
</div>
-->
<div>
<a href="{{ job.url }}">
<img src="{{ app.baseServerUrl }}{{ asset(job.webPath) }}"
alt="{{ job.company }} logo" />
</a>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment