エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Using Javascript variable in Twig template using Silex framework
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Using Javascript variable in Twig template using Silex framework
I am trying to create a route inside of some Javascript inside of a Twig template and need to use... I am trying to create a route inside of some Javascript inside of a Twig template and need to use a JS variable as a value to a route parameter. Example: window.location.href = {{ path('post_display', { 'id': this_is_where_i_need_to_use_the_js_var }) }}; I am using the Silex framework and am unsure if FOS JS works for Silex. I don't think it does, though.