I have a request url like this:
http://www.test.com/parse/demo.apk
How can I rewrite this url so then controller ParaseController, actionIndex could receive the "demo.apk" as a param?
I have a request url like this:
http://www.test.com/parse/demo.apk
How can I rewrite this url so then controller ParaseController, actionIndex could receive the "demo.apk" as a param?
Add the rule to the $rules
array of the UrlManager
'parse/<package:[a-z\.]+>' => 'parse/index'
Now the actionIndex($package)
becomes the get parameter of the package name $package
.