Skip to content

Instantly share code, notes, and snippets.

@faizalmansor
Created February 24, 2016 03:01
Show Gist options
  • Save faizalmansor/12e617314ed2eac9bcfc to your computer and use it in GitHub Desktop.
Save faizalmansor/12e617314ed2eac9bcfc to your computer and use it in GitHub Desktop.
'urlManager' => [
'class' => 'yii\web\UrlManager',
'showScriptName' => false,
'enablePrettyUrl' => true,
'rules' => array(
'<controller:\w+>/<id:\d+>' => '<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
),
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment