View Snippet #219

     'urlManager' => [
     'enablePrettyUrl' => true,
     'showScriptName' => false,
     //'urlFormat' => 'path',
       'rules' => [
           '<orgname:\w+>/<orgid:\d+>/<controller:\w+>/<id:\d+>' 
                   => '<controller>/view/<id>',
           '<orgname:\w+>/<orgid:\d+>/<controller:\w+>/<action:\w+>/<id:\d+>' 
                   => '<controller>/<action>',
           '<controller:\w+>/<id:\d+>' 
                   => '<controller>/view',
           '<controller:\w+>/<action:\w+>/<id:\d+>' 
                   => '<controller>/<action>',
           '<controller:\w+>/<action:\w+>' 
                   => '<controller>/<action>',
           '<action:\w+>' 
                   => 'site/<action>',
       ],
   ],