protected function insertBaseTag($view)
    {
        if (is_null($this->baseUrl)) {
            return $view;
        }

        return str_replace('<head>', '<head><base href="'.$this->baseUrl.'">', $view);
    }
protected function insertBaseTag($view)
    {
        if (is_null($this->baseUrl)) {
            return $view;
        }

        return str_replace('<head>', '<head><base href="'.$this->baseUrl.'">', $view);
    }
protected function insertBaseTag ( $ view ) { if ( is_null ( $ this -> baseUrl ) ) { return $ view ; } return str_replace ( '<head>' , '<head><base href="' . $ this -> baseUrl . '">' , $ view ) ; }
Insert a base tag after the head tag to allow relative references to assets
@param string $view
@return string
Insert a base tag after the head tag to allow relative references to assets