public function displayView($view = '', $suffix = '')
    {
        $viewTag = $view . ($suffix ?  '#' . $suffix : '');
        if (!array_key_exists($viewTag, $this->_displayViewCache)) {
            $this->_displayViewCache[$viewTag] = '';
            $viewRootPath = 'themes.' . PageBuilder::getData('theme') . '.blocks.';
            $viewFiles = $view ? array_merge([$view], $this->_displayViewFiles) : $this->_displayViewFiles;
            foreach ($this->_displayViewDirs as $viewDir) {
                foreach ($viewFiles as $viewFile) {
                    $this->_displayViewLog[] = $viewRootPath . $viewDir . '.' . $viewFile . $suffix;
                    if (View::exists(end($this->_displayViewLog))) {
                        $this->_displayViewCache[$viewTag] = end($this->_displayViewLog);
                        break 2;
                    }
                }
            }
        }
        return $this->_displayViewCache[$viewTag];
    }
public function displayView($view = '', $suffix = '')
    {
        $viewTag = $view . ($suffix ?  '#' . $suffix : '');
        if (!array_key_exists($viewTag, $this->_displayViewCache)) {
            $this->_displayViewCache[$viewTag] = '';
            $viewRootPath = 'themes.' . PageBuilder::getData('theme') . '.blocks.';
            $viewFiles = $view ? array_merge([$view], $this->_displayViewFiles) : $this->_displayViewFiles;
            foreach ($this->_displayViewDirs as $viewDir) {
                foreach ($viewFiles as $viewFile) {
                    $this->_displayViewLog[] = $viewRootPath . $viewDir . '.' . $viewFile . $suffix;
                    if (View::exists(end($this->_displayViewLog))) {
                        $this->_displayViewCache[$viewTag] = end($this->_displayViewLog);
                        break 2;
                    }
                }
            }
        }
        return $this->_displayViewCache[$viewTag];
    }
public function displayView ( $ view = '' , $ suffix = '' ) { $ viewTag = $ view . ( $ suffix ? '#' . $ suffix : '' ) ; if ( ! array_key_exists ( $ viewTag , $ this -> _displayViewCache ) ) { $ this -> _displayViewCache [ $ viewTag ] = '' ; $ viewRootPath = 'themes.' . PageBuilder :: getData ( 'theme' ) . '.blocks.' ; $ viewFiles = $ view ? array_merge ( [ $ view ] , $ this -> _displayViewFiles ) : $ this -> _displayViewFiles ; foreach ( $ this -> _displayViewDirs as $ viewDir ) { foreach ( $ viewFiles as $ viewFile ) { $ this -> _displayViewLog [ ] = $ viewRootPath . $ viewDir . '.' . $ viewFile . $ suffix ; if ( View :: exists ( end ( $ this -> _displayViewLog ) ) ) { $ this -> _displayViewCache [ $ viewTag ] = end ( $ this -> _displayViewLog ) ; break 2 ; } } } } return $ this -> _displayViewCache [ $ viewTag ] ; }
Return display block view path
@param string $view
@param string $suffix
@return string
Return display block view path