예제 #1
0
 public function revisionsWidget(array $options)
 {
     return \nitm\widgets\revisions\Revisions::widget($options);
 }
 /**
  * Lists all Revisions models.
  * @return mixed
  */
 public function actionIndex($type = null, $id = null)
 {
     Response::viewOptions(null, ['args' => ["content" => RevisionsWidget::widget(["parentId" => $id, "parentType" => $type])], 'modalOptions' => ['contentOnly' => true]], true);
     return $this->renderResponse(null, null, \Yii::$app->request->isAjax);
 }