次のように外部 URL を表示したい:
www.abc.com/username
このページにはgroup_id
,ticket_id
が必要ですが、これらの変数を外部 URL に表示したくありません。
私のrouting.yml
:
my_profile:
url: /:username
param: { module: profile, action: index, grp_id: GRRf3eedfb7-842d-4cbd-a17f-141334cd1b4d, ticket: UAe25d7784-7b9f-499a-8e53-57f5aee91d95, display: true }
indexSuccess.php
echo url_for('@my_profile?module=profile&action=index&username='.$username.'&grp_id='.$groupID.'&ticket='.$ticket)
routing.yml
params
には staticgrp_id
とがあることに注意してくださいticket
。それはNicelyを出力します。
しかし、私はそれを動的にしたいです。動的な値を指定する必要があり、URL に表示されないようにする必要がありますgrp_id
。ticket