first commit
This commit is contained in:
24
vendor/yiisoft/yii2/views/_addColumns.php
vendored
Normal file
24
vendor/yiisoft/yii2/views/_addColumns.php
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @var \yii\web\View $this
|
||||
* @var array $fields
|
||||
* @var string $table
|
||||
* @var array $foreignKeys
|
||||
*/
|
||||
|
||||
?>
|
||||
<?php foreach ($fields as $field): ?>
|
||||
$this->addColumn('<?=
|
||||
$table
|
||||
?>', '<?=
|
||||
$field['property']
|
||||
?>', $this-><?=
|
||||
$field['decorators']
|
||||
?>);
|
||||
<?php endforeach;
|
||||
|
||||
echo $this->render('_addForeignKeys', [
|
||||
'table' => $table,
|
||||
'foreignKeys' => $foreignKeys,
|
||||
]);
|
||||
Reference in New Issue
Block a user