Advertisement
Guest User

Untitled

a guest
Sep 25th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. $menuItems = [
  2. ['label' => 'HOME', 'url' => ['/site/index']],
  3. ['label' => 'COMPANIES', 'url' => ['companies/index']]
  4. ['label' => 'EMPLOYEES', 'url' => ['/employee/index']],
  5.  
  6. ];
  7.  
  8. $params = array_merge(
  9. require(__DIR__ . '/../../common/config/params.php'),
  10. require(__DIR__ . '/../../common/config/params-local.php'),
  11. require(__DIR__ . '/params.php'),
  12. require(__DIR__ . '/params-local.php')
  13. );
  14.  
  15.  
  16. return [
  17.  
  18.  
  19. 'id' => 'app-backend',
  20. 'basePath' => dirname(__DIR__),
  21. 'controllerNamespace' => 'backendcontrollers',
  22. 'bootstrap' => ['log'],
  23. 'modules' => [],
  24. 'components' => [
  25. 'request' => [
  26. 'csrfParam' => '_csrf-backend',
  27. ],
  28. 'user' => [
  29. 'identityClass' => 'commonmodelsUser',
  30. 'enableAutoLogin' => true,
  31. 'identityCookie' => ['name' => '_identity-backend', 'httpOnly' => true],
  32. ],
  33. 'session' => [
  34. // this is the name of the session cookie used for login on the backend
  35. 'name' => 'advanced-backend',
  36. ],
  37. 'log' => [
  38. 'traceLevel' => YII_DEBUG ? 3 : 0,
  39. 'targets' => [
  40. [
  41. 'class' => 'yiilogFileTarget',
  42. 'levels' => ['error', 'warning'],
  43. ],
  44. ],
  45. ],
  46. 'errorHandler' => [
  47. 'errorAction' => 'site/error',
  48. ],
  49.  
  50.  
  51.  
  52.  
  53. ],
  54. 'params' => $params,
  55.  
  56. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement