Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このルートを定義しました
teln_operator_edit_1: pattern: /edit1/{id}/{step} defaults: { _controller: TelnOperatorBundle:Operator:step1 }
そして私は得る
/Symfony/web/app_dev.php/edit1/13/1 ステップ値を取得したいのですが、どうすればよいですか?
URL パラメーター値をパラメーターとしてアクション メソッドに取得します。
public function step1Action($id, $step) { // ... }
メソッドのパラメーター名がパターン内のパラメーター名と同じであることを確認してください。