BcBaserHelper::getCurrentPrefix PHP Method

getCurrentPrefix() public method

現在のサイトプレフィックスを取得する
public getCurrentPrefix ( ) : string
return string
    public function getCurrentPrefix()
    {
        if (empty($this->request->params['Site'])) {
            return '';
        }
        $Site = ClassRegistry::init('Site');
        return $Site->getPrefix($this->request->params['Site']);
    }