public function actionDelete($vid, $id)
    {
        $this->findModel($id, $vid)->delete();
        return $this->redirect(['index', 'vid' => $vid]);
    }
public function actionDelete($vid, $id)
    {
        $this->findModel($id, $vid)->delete();
        return $this->redirect(['index', 'vid' => $vid]);
    }
public function actionDelete ( $ vid , $ id ) { $ this -> findModel ( $ id , $ vid ) -> delete ( ) ; return $ this -> redirect ( [ 'index' , 'vid' => $ vid ] ) ; }
Delete model page.

@param integer $id Post ID

@return mixed
Delete model page .