Gdn_Plugin::getView PHP Method

getView() public method

This method takes a simple filename and, assuming it is located inside /views/, converts it into a path that is suitable for $Sender->Render().
Deprecation: This method is not themeable and thus not advisable.
public getView ( string $ViewName ) : string
$ViewName string The name of the view file, including extension.
return string Returns the path to the view file, relative to the document root.
    public function getView($ViewName)
    {
        deprecated('Gdn_Plugin->getView()');
        $PluginDirectory = implode(DS, array($this->getPluginFolder(true), 'views'));
        return $PluginDirectory . DS . $ViewName;
    }