src/file/Item.php
public function getSource($scheme = false)
    {
        return $scheme ? Yii::$app->storage->fileAbsoluteHttpPath($this->getKey('name_new_compound')) : Yii::$app->storage->fileHttpPath($this->getKey('name_new_compound'));
    }
public function getSource($scheme = false)
    {
        return $scheme ? Yii::$app->storage->fileAbsoluteHttpPath($this->getKey('name_new_compound')) : Yii::$app->storage->fileHttpPath($this->getKey('name_new_compound'));
    }
public function getSource ( $ scheme = false ) { return $ scheme ? Yii :: $ app -> storage -> fileAbsoluteHttpPath ( $ this -> getKey ( 'name_new_compound' ) ) : Yii :: $ app -> storage -> fileHttpPath ( $ this -> getKey ( 'name_new_compound' ) ) ; }
Get the absolute source path to the file location on the webserver.

This will return raw the path to the storage file inside the sotorage folder without readable urls.

@param boolean $scheme Whether the source path should be absolute or not.
@return string The raw path to the file inside the storage folder.
Get the absolute source path to the file location on the webserver .