title: How does Joomla route to the controller method on submitting the form?
body: <p>In a case where the form action is set to something like:</p>
  
  <pre><code>action="&lt;?php echo JRoute::_('index.php?option=com_test&amp;layout=edit&amp;id='.(int) $this-&gt;item-&gt;id); ?&gt;"
  </code></pre>
  
  <p>and the form contains and hidden input:</p>
  
  <pre><code>&lt;input type="hidden" name="task" value="testctrl.save" /&gt;
  </code></pre>
  
  <p>How does joomla route to the controller method?</p>
  
  <p>I would understand if it had the task in the form action, but I can't see how it picks up the task from the hidden input in order to route to the appropriate method in the <code>testctrl</code> controller method</p>