yii\gii\CodeFile::getRelativePath PHP 메소드

getRelativePath() 공개 메소드

public getRelativePath ( ) : string
리턴 string the code file path relative to the application base path.
    public function getRelativePath()
    {
        if (strpos($this->path, Yii::$app->basePath) === 0) {
            return substr($this->path, strlen(Yii::$app->basePath) + 1);
        } else {
            return $this->path;
        }
    }