SHARE
TWEET

Untitled

a guest Jul 17th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. OrderChannelController.php:
  2.  
  3.     public function actionAddChannel() {
  4.         $model = new OrderChannel;
  5.         echo $this->renderPartial('_form', array('model'=>$model));
  6.     }
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13. _form.php:
  14.  
  15.     <?php $form=$this->beginWidget('CActiveForm', array(
  16.         'id'=>'order-channel-form',
  17.         'enableAjaxValidation'=>false,
  18.     )); ?>
  19.     <bunch of form fields>
  20.     <div class="row buttons">
  21.         <?php echo CHtml::ajaxButton('Add Channel', 'orderChannel/addChannel'); ?>
  22.     </div>
RAW Paste Data
Pastebin PRO Summer Special!
Get 60% OFF on Pastebin PRO accounts!
Top