title: How can I call controller/method inside button onclick?
body: <p>I want to call a controller with method onclick. I solved this, but I want to find a solution for this.</p>
  <pre><code>&lt;button type=&quot;button&quot; class=&quot;btn btn-success&quot; onclick=&quot;&lt;?php  ?&gt;&quot;&gt;Sign Up&lt;/button&gt;
  </code></pre>