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;
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- ihayredinov@ihayredinov
ihayredinov - 0 likes
You must log in to post replies.Buttons don't do anything unless they are submit buttons.
Use output/URL view with elgg-button class. There are plenty of examples in core