コード例 #1
0
ファイル: Relations.php プロジェクト: nhatvuvan/yii2-widgets
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getRevisionModel()
 {
     return $this->getWidgetRelationModelQuery(\nitm\widgets\models\Revisions::className());
 }
コード例 #2
0
 /**
  * Deletes an existing Revisions model.
  * If deletion is successful, the browser will be redirected to the 'index' page.
  * @param integer $user_id
  * @param string $remote_type
  * @param integer $remote_id
  * @return mixed
  */
 public function actionDelete($id)
 {
     $this->findModel(Revisions::className(), $id)->delete();
     return $this->redirect(['index']);
 }