I already asked , but how to access view page without id value in the url. :  my view.php
      <?php
        echo 
        Html::beginForm(['contactpersons/update'], 'post',['id' => 'update-form']) .
        '<input type="hidden" name="id" value="'.$model->id.'">
         <a href="javascript:{}" onclick="document.getElementById(\'update-form\').submit(); 
        return false;">Update</a>'. 
        Html::endForm(); 
        ?>   
        <?= Html::a('Delete', ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => 'Are you sure you want to delete this item?',
                'method' => 'post',
            ],
        ]) ?>
my controller is
         public function actionView($id)
          {
           $model = $this->findModel($id);
           return $this->render('view', [
            'model' => $model
               ]);
           }


How to modify this for getting my view page without id value in the url.

Thanks in advance.