yii\base\Request::getScriptFile PHP Method

getScriptFile() public method

Returns entry script file path.
public getScriptFile ( ) : string
return string entry script file path (processed w/ realpath())
    public function getScriptFile()
    {
        if ($this->_scriptFile === null) {
            if (isset($_SERVER['SCRIPT_FILENAME'])) {
                $this->setScriptFile($_SERVER['SCRIPT_FILENAME']);
            } else {
                throw new InvalidConfigException('Unable to determine the entry script file path.');
            }
        }
        return $this->_scriptFile;
    }