Buttons do not work.

I have created a button in one of the pages of the plugin I am developing. However, clicking on the button does not take me to the link specified. In fact, it does not do anything and the view stays the same. Is there something else I need to do to make it work?

 

$cancel_button = elgg_view('input/button', array(

        'value' => elgg_echo('Reject'),

        'class' => 'elgg-button-cancel mlm',

        'href' => '/link/to/my/page',

));

 

echo <<<___HTML

<div class="elgg-page-footer">

        $accept_button $cancel_button

</div>

___HTML;
Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking