Guest User

Untitled

a guest
Mar 6th, 2015
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. return [
  2. 'id' => 'app-backend',
  3. 'basePath' => dirname(__DIR__),
  4. 'controllerNamespace' => 'backend\controllers',
  5. 'bootstrap' => ['log'],
  6. 'modules' => [],
  7. 'components' => [
  8. 'user' => [
  9. 'identityClass' => 'common\models\User',
  10. 'enableAutoLogin' => true,
  11. ],
  12. 'log' => [
  13. 'traceLevel' => YII_DEBUG ? 3 : 0,
  14. 'targets' => [
  15. [
  16. 'class' => 'yii\log\FileTarget',
  17. 'levels' => ['error', 'warning'],
  18. ],
  19. ],
  20. ],
  21. 'formatter' => [
  22. 'defaultTimeZone' => 'Europe/Malta',
  23. 'timeZone' => 'Europe/Malta',
  24. 'dateFormat' => 'php:d/m/Y',
  25. 'datetimeFormat'=>'php:d-M-Y H:i:s',
  26. 'currencyCode' => 'EUR',
  27. 'decimalSeparator' => ',',
  28. ],
  29.  
  30. 'errorHandler' => [
  31. 'errorAction' => 'site/error',
  32. ],
  33.  
  34. ],
  35. 'params' => $params,
  36. ];
  37.  
  38.  
  39.  
  40.  
  41. */----------------Config file ---------------/*
  42.  
  43.  
  44. */----------------view file ---------------/*
  45. <?= GridView::widget([
  46. 'dataProvider' => $dataProvider,
  47. 'filterModel' => $searchModel,
  48. 'columns' => [
  49. ['class' => 'yii\grid\SerialColumn'],
  50.  
  51. 'id',
  52. 'title',
  53. 'post:ntext',
  54. 'created_at:datetime',
  55. 'updated_at:datetime',
  56.  
  57. ['class' => 'yii\grid\ActionColumn'],
  58. ],
  59. ]); ?>
Advertisement
Add Comment
Please, Sign In to add comment