Gdn_Plugin::controller_index PHP Method

controller_index() public method

public controller_index ( $sender )
$sender
    public function controller_index($sender)
    {
        $sender->title($this->getPluginKey('Name'));
        $sender->addSideMenu('plugin/' . $this->getPluginIndex());
        $sender->setData('Description', $this->getPluginKey('Description'));
        $CSSFile = $this->getResource('css/' . strtolower($this->getPluginIndex()) . '.css', false, false);
        if (file_exists($CSSFile)) {
            $sender->addCssFile($CSSFile);
        }
        $ViewFile = $this->getView(strtolower($this->getPluginIndex()) . '.php');
        $sender->render($ViewFile);
    }