src/AssetConfig.php
public function cachePath($ext, $path = null)
    {
        if ($path === null) {
            if (isset($this->_data[$ext]['cachePath'])) {
                return $this->_data[$ext]['cachePath'];
            }
            return '';
        }
        $path = $this->_replacePathConstants($path);
        $this->_data[$ext]['cachePath'] = rtrim($path, '/') . '/';
    }
public function cachePath($ext, $path = null)
    {
        if ($path === null) {
            if (isset($this->_data[$ext]['cachePath'])) {
                return $this->_data[$ext]['cachePath'];
            }
            return '';
        }
        $path = $this->_replacePathConstants($path);
        $this->_data[$ext]['cachePath'] = rtrim($path, '/') . '/';
    }
public function cachePath ( $ ext , $ path = null ) { if ( $ path === null ) { if ( isset ( $ this -> _data [ $ ext ] [ 'cachePath' ] ) ) { return $ this -> _data [ $ ext ] [ 'cachePath' ] ; } return '' ; } $ path = $ this -> _replacePathConstants ( $ path ) ; $ this -> _data [ $ ext ] [ 'cachePath' ] = rtrim ( $ path , '/' ) . '/' ; }
Accessor for getting the cachePath for a given extension.

@param string $ext Extension to get paths for.
@param string $path The path to cache files using $ext to.
Accessor for getting the cachePath for a given extension .