Action Parameters Binding

I am trying to port Yii 1.1 application to Yii 2.0. Does action parameter binding work in Yii2? For instance if I have


public function actionTest1($var){...}

in Yii2 when I try to invoke test1 through http://mysite.local/mycontroller/test1/var/value I get in return 404. It works fine without parameters in Yii 2.0 and parameter binding worked fine in Yii 1.1.

This is my UrlManager config


'urlManager'=>[

            'enablePrettyUrl' => true,

            'showScriptName' => false,]



.htaccess


RewriteEngine on


# If a directory or a file exists, use the request directly

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

# Otherwise forward the request to index.php

RewriteRule . index.php

I was using wrong Controller. Instead of yii\web\Controller I used yii\base\Controller.