FOF30\View\ViewTemplateFinder::setSidePrefix PHP Méthode

setSidePrefix() public méthode

Sets the application side prefix which will be used by default in getViewTemplateUris. It can be one of: site Public front-end admin Administrator back-end auto Automatically figure out if it should be site or admin any First look in the current application side, then look on the other side of the application
public setSidePrefix ( string $sidePrefix ) : void
$sidePrefix string
Résultat void
    public function setSidePrefix($sidePrefix)
    {
        $sidePrefix = strtolower($sidePrefix);
        $sidePrefix = trim($sidePrefix);
        if (!in_array($sidePrefix, array('site', 'admin', 'auto', 'any'))) {
            $sidePrefix = 'auto';
        }
        $this->sidePrefix = $sidePrefix;
    }