error at passed parameters

Hi,


Why i can't passed  parameters?


    public  function  actionRezerwuj($id)

    {


            echo $id;


    }


view


echo Html::a('Rezerwuj',['/repertuar/rezerwuj/','id' =>$item['id_seans']],['class'=>'btn btn-primary btn-xs'])?>

Error

Missing argument 1 for frontend\controllers\RepertuarController::actionRezerwuj()

My config url


   'urlManager'=>[

            'enablePrettyUrl'=>true,

            'showScriptName'=>false,

            'rules'=>[

                '<controller:\w+>/<id:\d+>' => '<controller>/view',


        '<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',


                '<controller:\w+>/<action:\w+>' => '<controller>/<action>',


                ' <module:user>/<controller:\w+>/<action:\w+>' => '<module>/<controller>/<action>',


                'site/page/view/<view:\w+>' => 'site/page',


                'debug/<controller>/<action>' => 'debug/<controller>/<action>',


            ],

Try to remove slashes from start and end of url:




echo Html::a('Rezerwuj',['repertuar/rezerwuj','id' =>$item['id_seans']],['class'=>'btn btn-primary btn-xs'])



it’s not working… all time he show me id=1 at default set action, my url look

http://localhost/Kino/advanced/frontend/web/repertuar/rezerwuj/13


public  function  actionRezerwuj($id=1)

    {

        echo $id;

  

    }

when i tried manual set parameter throught url

repertuar/rezerwuj&id=4 i gets Not Found (#404)

I have solution…

use yii\web\Controller; instead use yii\base\Controller;

omg…