Jump to content
  • 0

How To Add A Plugin To The Admin Menu Bar?


ty0716

Question

2 answers to this question

Recommended Posts

  • 0

in your plugin you should add it with getactions() .

 

check the documentation for creating plugin .

THS.Solved,

public function getActions() {
        return array(
            array(
                'action' => "nav_primary_client", // The action to tie into
                'uri' => "plugin/my_plugin/client_main/index/", // The URI to fetch when the action is needed
                'name' => "Foo Bar", // The name used by Blesta to display for the action (e.g. The name of the link),
                'options' => null // Options required for this action if any (e.g. array('key' => "value"))
            )
        );
    }

http://docs.blesta.com/display/dev/Plugin+Actions

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...