Jamie Posted October 20, 2014 Report Posted October 20, 2014 Hello, I'm in the process of creating my own plugin but I have unfortunately hit a stump. I am trying to render a new link under the "Account Actions" on clients profile page in the admin area. I have tried to use the examples shown here and I have also used examples from other plugins but I cant seem to get it to work. There isn't any errors, no blank pages, nothing. It just doesn't display the link (everything else in the plugin still works). Here is what I have at the moment: public function getActions() { return array( array( 'action' => "action_staff_client", 'uri' => "plugin/plugin_name/search/", 'name' => 'Test Action' ) ); } I have placed this after the install and uninstall functions inside my PluginNamePlugin file. I have had a search around and I cant seem to find the solution to my answer. Any help would be really appreciated - Jamie Quote
Blesta Addons Posted October 20, 2014 Report Posted October 20, 2014 you have added the code after the installation of the plugin ? try uninstall and then re-install the plugin .. you can also check the plugins_actions table to see if the action has been added to database . Jamie 1 Quote
Jamie Posted October 20, 2014 Author Report Posted October 20, 2014 Ah! Uninstall and re-installing it done the trick. Not really sure why I didn't think of that. Thank you for your really quick reply! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.