doqpm82240 2009-06-18 03:00
浏览 7
已采纳

如何使用symfony的use_dynamic_javascript()帮助器?

There are no examples of use anywhere, or even an explanation on how to use it.

  • 写回答

3条回答 默认 最新

  • doucong1992 2009-06-18 03:40
    关注

    Here's the source, make with it what you will. (Doesn't appear overly useful IMO).

    566 /**
    567  * Adds a dynamic javascript to the response object.
    568  *
    569  * The first argument is an internal URI.
    570  * The helper automatically adds the sf_format to the internal URI, so you don't have to.
    571  *
    572  * @see sfResponse->addJavascript()
    573  */
    574 function use_dynamic_javascript($js, $position = '', $options = array())
    575 {
    576   $options['raw_name'] = true;
    577 
    578   return use_javascript(_dynamic_path($js, 'js'), $position, $options);
    579 }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?