public function getFileLink($field = null, $name = null)
    {
        $root = realpath(\Yii::getAlias('@webroot'));
        return str_replace($root, '', $this->getFilePath($field, $name));
    }
public function getFileLink($field = null, $name = null)
    {
        $root = realpath(\Yii::getAlias('@webroot'));
        return str_replace($root, '', $this->getFilePath($field, $name));
    }
public function getFileLink ( $ field = null , $ name = null ) { $ root = realpath ( \ Yii :: getAlias ( '@webroot' ) ) ; return str_replace ( $ root , '' , $ this -> getFilePath ( $ field , $ name ) ) ; }
Gets url to file
@param null $field
@param null $name
@return mixed
Gets url to file