Динамическое количество параметров в Action в Yii 2
как реализовать
я пробовал так:
'components' => [
'urlManager' => [
'class' => 'yii\web\UrlManager',
'showScriptName' => false,
'enablePrettyUrl' => true,
'rules' => array(
'site/about/<slug:[A-Za-z0-9 -_.]+>/<type:[A-Za-z0-9 -_.]+>' => 'site/about',
),
],
],
/***********************************************************************************************************/
public function actionAbout( $slug, $type = NULL )
{
return $this->render('about');
}
/site/about/param1 - result 404
/site/about/param1/param2 - result 200
но не катит