I defined this route
teln_operator_edit_1:
pattern: /edit1/{id}/{step}
defaults: { _controller: TelnOperatorBundle:Operator:step1 }
and I get
/Symfony/web/app_dev.php/edit1/13/1 I want to get the step value how to do that?
You'll get URL parameter value into your action method as a parameter:
public function step1Action($id, $step) {
// ...
}
Make sure method parameter names are equivalent to parameter names in your pattern.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.