Hello,
I am trying to register an action for my plugin, but it not working.
$base = elgg_get_site_url() . 'mod/better_settings/actions/header.php'; elgg_register_action("better_settings/header", $base, 'admin');
And my action is stored at...
mod/better_settings/actions/header.php
What am I doing wrong?
I made sure that there is content in header.php. It is just a word.
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.
- rjcalifornia@rjcalifornia

rjcalifornia - 0 likes
- Ben Potter@Speedysnail6

Ben Potter - 0 likes
- Team Webgalli@webgalli

Team Webgalli - 0 likes
- rjcalifornia@rjcalifornia

rjcalifornia - 0 likes
- Ben Potter@Speedysnail6

Ben Potter - 0 likes
You must log in to post replies.It looks corect, what it is supposed to do?
Rodolfo Hernandez
Arvixe/Elgg Community Liaison
It is supposed to save settings in the elgg admin settings.
When i try to contact the action with a form in /appearance/header
it says that better_settings/header action doesnt exist
The $base should be the full path of the file to register, or a path relative to the core actions/ dir
$base = elgg_get_plugins_path() . 'better_settings/actions/header.php';
Good call, Webgalli.
Ok. Thanks. I appreciate it.