I'm trying to get the variables from a $_GET request the request is like /markers/var1/var2/var3/var4 the route file is as follows:
Markers:
pattern: /markers/{slug}
defaults: { _controller: ngNearBundle:Markers:index }
First question is :
- does index method need to be an action method ? "indexAction" the method will output json.
- how can I get the value of var1 and var2 etc ... ?
thanks !