over 3 years ago

Form 表單自訂 action 屬性

Example :
new.php
<div class="form">
    <?php $form = $this->beginWidget('CActiveForm', array(
        'id'=>'form-id',
        'action' => Yii::app()->createUrl(....), // <- 這邊
    )); ?>
        ...
        ...
    <?php $this->endWidget(); ?>
</div>
← 建立 Yii framework app for [Windows] Yii CRUD application →