create.php 595 B

123456789101112131415161718192021
  1. <?php
  2. use yii\helpers\Html;
  3. /* @var $this yii\web\View */
  4. /* @var $model common\models\ArticleModule */
  5. $this->title = 'Create Article Module';
  6. $this->params['breadcrumbs'][] = ['label' => 'Article Modules', 'url' => ['index']];
  7. $this->params['breadcrumbs'][] = $this->title;
  8. ?>
  9. <div class="article-module-create">
  10. <div class="alert alert-info">
  11. 需要创建`common\models\article\Name`类,并添加`DynamicFormBehavior`行为控制字段表单类型,参考`common\models\article\Base`
  12. </div>
  13. <?= $this->render('_form', [
  14. 'model' => $model,
  15. ]) ?>
  16. </div>