mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-29 01:17:13 +08:00
25 lines
445 B
PHP
25 lines
445 B
PHP
<?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,
|
|
]);
|