Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OrderChannelController.php:
- public function actionAddChannel() {
- $model = new OrderChannel;
- echo $this->renderPartial('_form', array('model'=>$model));
- }
- _form.php:
- <?php $form=$this->beginWidget('CActiveForm', array(
- 'id'=>'order-channel-form',
- 'enableAjaxValidation'=>false,
- )); ?>
- <bunch of form fields>
- <div class="row buttons">
- <?php echo CHtml::ajaxButton('Add Channel', 'orderChannel/addChannel'); ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement