2015-09-22 16:24:25 2588次浏览 0条回答 0 悬赏 20 金钱

form.php代码:

<div class="Article-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'title')->textInput(['maxlength' => 50]) ?>

    <?= $form->field($model, 'summary')->textInput(['maxlength' => 250]) ?>

	<?= $form->field($model, 'content')->textarea(['rows' => 4])->widget('kucha\ueditor\UEditor',[
        'clientOptions' => [
            'initialFrameWidth' => 500,
            'initialFrameHeight' => 300,
            'toolbars' => 'lite',
        ]
    ]) ?>

    <?= $form->field($model, 'status')->dropDownList(\common\models\Article::$statuss,['prompt'=>'请选择','style'=>'width:120px']) ?>

    <?php ActiveForm::end(); ?>

</div>

我想让他提交之后触发一个方法,请各位帮我一下

    没有找到数据。
您需要登录后才可以回答。登录 | 立即注册
辰枫夜雨
助理

辰枫夜雨

注册时间:2015-08-11
最后登录:2017-06-23
在线时长:18小时59分
  • 粉丝10
  • 金钱0
  • 威望0
  • 积分180

热门问题