79774418

Date: 2025-09-25 06:17:18
Score: 1.5
Natty:
Report link

The correct way is to use `\Yii::$container->set()` in the bootstrapping code.

\Yii::$container->set('\yii\grid\GridView', [
    'tableOptions' => ['class' => 'table table-sm table-striped table-bordered'],
    'layout' => '{summary}\n{pager}\n{items}\n{summary}\n{pager}',
]);

See: https://www.yiiframework.com/doc/guide/2.0/en/concept-configurations#default-configurations

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: schmauch