Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Plugin setting page
ddumont
✭✭
Ok I've been at this for hours...
How in the world do you hook up a settings page for a plugin?
I have:
$PluginInfo["MyPlugin"] = array(
...
"SettingsUrl" => "/dashboard/plugin/myplugin",
"SettingsPermission" => "Garden.Settings.Manage",
...
);
And:
public function SettingsController_MyPlugin_Create($Sender, $Args) {
...
$Sender->AddSideMenu("plugin/myplugin"); // what does this do?
$Sender->SetData("Title", T("MyPlugin Settings"));
$Sender->Render("Settings", "", "plugin/myplugin");
}
I got some of this code from plugins I'm using... but it seems they all do it their own special way...
How is this stuff supposed to work? I get a 404 when i go to /dashboard/plugin/myplugin
How do I tell it to load my settings.php file in the views folder?
I can't see how any of these other plugins do it? Where's the magic?
How in the world do you hook up a settings page for a plugin?
I have:
$PluginInfo["MyPlugin"] = array(
...
"SettingsUrl" => "/dashboard/plugin/myplugin",
"SettingsPermission" => "Garden.Settings.Manage",
...
);
And:
public function SettingsController_MyPlugin_Create($Sender, $Args) {
...
$Sender->AddSideMenu("plugin/myplugin"); // what does this do?
$Sender->SetData("Title", T("MyPlugin Settings"));
$Sender->Render("Settings", "", "plugin/myplugin");
}
I got some of this code from plugins I'm using... but it seems they all do it their own special way...
How is this stuff supposed to work? I get a 404 when i go to /dashboard/plugin/myplugin
How do I tell it to load my settings.php file in the views folder?
I can't see how any of these other plugins do it? Where's the magic?
There was an error rendering this rich post.
0