web/BaseWebFile.php
public function getFileBody()
    {
        if (!isset($this->_fileBody)) {
            if (is_file($this->_srcFilePath)) {
                $this->_fileBody = file_get_contents($this->_srcFilePath);
            } else {
                $this->errmsg = Yii::t($this->tc, "Source file '{file}' not found", ['file' => $this->_srcFilePath]);
                return false;
            }
        }
        return $this->_fileBody;
    }
public function getFileBody()
    {
        if (!isset($this->_fileBody)) {
            if (is_file($this->_srcFilePath)) {
                $this->_fileBody = file_get_contents($this->_srcFilePath);
            } else {
                $this->errmsg = Yii::t($this->tc, "Source file '{file}' not found", ['file' => $this->_srcFilePath]);
                return false;
            }
        }
        return $this->_fileBody;
    }
public function getFileBody ( ) { if ( ! isset ( $ this -> _fileBody ) ) { if ( is_file ( $ this -> _srcFilePath ) ) { $ this -> _fileBody = file_get_contents ( $ this -> _srcFilePath ) ; } else { $ this -> errmsg = Yii :: t ( $ this -> tc , "Source file '{file}' not found" , [ 'file' => $ this -> _srcFilePath ] ) ; return false ; } } return $ this -> _fileBody ; }
Get file body
@return string|false and get $this->errmsg
Get file body