This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Configure Path in Asset Helper

New topics about Symfony 2 should go here

Configure Path in Asset Helper

by sma.jazayeri » Sat Jun 13, 2015 6:24 am

Hi there,

I wanna configure the path to my assets (js, css, etc.) from /web to /foo/bar. According to your reference book http://symfony.com/doc/current/components/templating/helpers/assetshelper.html#configure-paths, it's possible. Unfortunately, it's not clear enough what file should added this line:
Code: Select all
$templateEngine->set(new AssetsHelper('/foo/bar'));


Any help or advice is appreciated. (I'm using Symfony 2.6)
sma.jazayeri
Junior Member
 
Posts: 1
Joined: Sat Jun 13, 2015 6:06 am