Advertisement
Guest User

Untitled

a guest
Jul 12th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.08 KB | None | 0 0
  1.  
  2.        'urlManager' => [
  3.            'enablePrettyUrl' => true,
  4.            'showScriptName' => false,
  5.            'rules' => [
  6.                '/' => 'site/index',
  7.                'about' => 'site/about',
  8.                'contact' => 'site/contact',
  9.                'login' => 'site/login',
  10.                'entry' => 'site/entry',
  11.                'gii' => 'gii',
  12.                'country/page/<page:\d+>' => 'country/index',
  13.            ],
  14.        ],
  15.        
  16.     ],
  17.     'params' => $params,
  18. ];
  19.  
  20. if (YII_ENV_DEV) {
  21.     // configuration adjustments for 'dev' environment
  22.     $config['bootstrap'][] = 'debug';
  23.     $config['modules']['debug'] = [
  24.         'class' => 'yii\debug\Module',
  25.         // uncomment the following to add your IP if you are not connecting from localhost.
  26.         //'allowedIPs' => ['127.0.0.1', '::1'],
  27.     ];
  28.  
  29.     $config['bootstrap'][] = 'gii';
  30.     $config['modules']['gii'] = [
  31.         'class' => 'yii\gii\Module',
  32.         // uncomment the following to add your IP if you are not connecting from localhost.
  33.         //'allowedIPs' => ['127.0.0.1', '::1'],
  34.     ];
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement