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