Get checkbox value of own made form type in Symfony
<p>I have added the following form typo in Symfony to my form. As it is not a member of the entity I need to handle it manually in the controller. How can i get the checkbox value in my controller?</p>

<pre><code>        -&gt;add('showUrl', 'checkbox', array(
            'mapped' =&gt; false,
        ))
</code></pre>

<p>This is the generated html in the form:</p>

<pre><code>&lt;input type="checkbox" id="cuslocation_accountreg_showUrl" name="cuslocation[accountreg][showUrl]" required="required" value="1"&gt;
</code></pre>