html
<a href="{{path('href="{{path('stockitemdetails_category_report',{'itemcode':itemcode,'category':category,'subcategory':subcategory})}}">
stockregister.yml (Routing file)
stockregister_report_itemcode_search:
pattern: /stockregister/itemcode/data
defaults: { _controller: "EduAssetBundle:StockRegister:stockregisterItemcodeDate" }
requirements:
itemcode: .+
category: .+
subcategory: .+
type: .+
accountunit: .+
Controller(File)
public function stockregisterItemcodeDateAction($itemcode,$category,$type,$accountunit) {}
here is the routing file where i define the variable which i have to pass but the problem is that the variable values is dynamic user can write anything. according to values in controller the dynamic values access and i can run query. but the problem is that the url value will be any thing.