jruzafa
4/18/2013 - 6:53 PM

CakePhp: Generate Accept Privacy Policy checkbox

CakePhp: Generate Accept Privacy Policy checkbox

// Link generate to label accept privacy policy
        $linkPrivacy = $this->Html->link(__('Accept Privacy Policy'), array('controller' => 'pages', 'action' => 'display', 'plugin' => '', 'privacy-policy'));

        $option = array(
            'div'           => false,
            'label'         => $linkPrivacy,
            'type'          => 'checkbox',
        );

        echo $this->Form->input('accept_privacy_policy', $option);