Symfony :: como insertar imagenes sin insertar path absoluto


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. //apps/frontend/config/app.yml
  2. all:
  3. base: /path/
  4.  
  5.  
  6. //template
  7. <img src="<? echo sfConfig::get('app_base') ?>images/information.png" title="information" alt="information"/>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.