[symfony-users] Re: Does 1.4 or any plugin allow to configure Javascript (view.yml) by environment ?

2010-02-26 Thread Massimiliano Arione
view.yml is deprecated in favors of helpers used directly in the templates or methods called from actions. You can use a conditional helper that checks for sf_debug config variable (that's even better than rely on environments) cheers Massimiliano On 26 Feb, 00:43, Bruno Reis wrote: > Hi all, >

[symfony-users] Re: Does 1.4 or any plugin allow to configure Javascript (view.yml) by environment ?

2010-03-01 Thread Massimiliano Arione
Sorry, no link. Just refer to official documentation. You only need to create a custom helper, copying use_javascript() function from AssetHelper and adding a simple logic base on sfConfig::get('sf_web_debug') cheers Massimiliano On 26 Feb, 18:43, Bruno Reis wrote: > Thanks a Lot Massimiliano, >

Re: [symfony-users] Re: Does 1.4 or any plugin allow to configure Javascript (view.yml) by environment ?

2010-02-26 Thread Bruno Reis
Thanks a Lot Massimiliano, Can you send me a link to where I can read more informations about it? 2010/2/26 Massimiliano Arione > view.yml is deprecated in favors of helpers used directly in the > templates or methods called from actions. > You can use a conditional helper that checks for sf_de