D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
epaji.com
/
public_html
/
hindiusa
/
vendor
/
yiisoft
/
yii2
/
views
/
Filename :
_createTable.php
back
Copy
<?php /** * Creates a call for the method `yii\db\Migration::createTable()`. */ /* @var $table string the name table */ /* @var $fields array the fields */ /* @var $foreignKeys array the foreign keys */ ?> $this->createTable('<?= $table ?>', [ <?php foreach ($fields as $field): if (empty($field['decorators'])): ?> '<?= $field['property'] ?>', <?php else: ?> <?= "'{$field['property']}' => \$this->{$field['decorators']}" ?>, <?php endif; endforeach; ?> ]); <?= $this->render('_addForeignKeys', [ 'table' => $table, 'foreignKeys' => $foreignKeys, ]);