title: How do I make a link use POST method in Yii?
body: <p>In Rails we can do </p>
  
  <pre><code>= link_to 'Logout', destroy_user_session_path, method: :post
  </code></pre>
  
  <p>How do we achieve this in Yii? (Without having to manually create a hidden form: <a href="https://stackoverflow.com/questions/3915917/make-a-link-use-post-instead-of-get">Make a link use POST instead of GET</a>.)</p>
  
  <p>I looked through the guide for <code>Url</code> for <code>post</code>, but couldn't find anything. </p>
  
  <p><a href="http://www.yiiframework.com/doc-2.0/guide-helper-url.html" rel="noreferrer">http://www.yiiframework.com/doc-2.0/guide-helper-url.html</a></p>
  
  <p>So far I have this</p>
  
  <pre><code>%a.btn.btn-sm.btn-success{href: Url::to(['update-bid', 'change' =&gt; 'plus'])} +10%
  </code></pre>