</div> <div class="col-lg-8 col-lg-offset-4"> <div class="media timeline-item"> <div class="media-left media-top hidden-sm hidden-xs"> <img class="img-circle media-object img-thumbnail" src="/image/tour/migration.png" alt=""> <div class="line"></div> </div> <div class="media-body"> <h2 class="media-heading">4) Migrations</h2> <?php HL::begin(['language' => 'bash']); ?> ./yii migrate/create create_comment_table <?php HL::end(); HL::begin(['capture' => true]); ?> use yii\db\Schema; use yii\db\Migration; class m150416_155923_create_comment_table extends Migration { public function up() { $tableOptions = null; if ($this->db->driverName === 'mysql') { // http://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'; } $this->createTable('{{%comment}}', [
<section class="section-quickstart"> <div class="container"> <div class="row"> <div class="col-md-3"> <a href="/tour" class="thumbnail"><img src="<?php echo Yii::getAlias('@web/image/front/tour.png'); ?> " title="Quick Start" alt="Quick Start"/></a> </div> <div class="col-md-9"> <h2>Quick Start</h2> <p> Creating a project with Yii can be done in less than 5 minutes by creating a project using Composer and a project template: </p> <?php HL::begin(['language' => 'bash']); ?> composer create-project --prefer-dist yiisoft/yii2-app-basic basic <?php HL::end(); ?> <p> For more information about how to get started with Yii quickly </p> <div class="row"> <div class="col-md-3"> <a class="btn btn-block btn-primary" href="/tour" role="button">Take the Yii Tour</a> </div> <div class="col-md-3"> <a class="btn btn-block btn-warning" href="/doc/guide" role="button">Read the Guide</a> </div>