public function getPublishedPath($path) { $path = Yii::getAlias($path); if (isset($this->_published[$path])) { return $this->_published[$path][0]; } if (is_string($path) && ($path = realpath($path)) !== false) { return $this->basePath . DIRECTORY_SEPARATOR . $this->hash($path) . (is_file($path) ? DIRECTORY_SEPARATOR . basename($path) : ''); } else { return false; } }