Look at the following path we go to when opening the View Customer Record page:
This is quite verbose. Why not just use the following:
We can implement it quite easily using the following declaration inside the
components.urlManager.rules setting of the Yii application configuration:
'components' => [ 'urlManager' => [ 'rules' => [ 'customer/<id:\d+>' => 'customer-records/view', ] ] ]
This declaration is being read and understood as follows:
idargument to the resulting controller action.