Exemplo n.º 1
0
 /**
  * Returns the url for one asset.
  * 
  * @access public
  * @param string $type
  * @param string $assetName
  * @return string
  */
 public function getAssetUrl($type, $assetName)
 {
     $file = $this->assetManager->getAssetFile($type, $assetName);
     if ($file === false) {
         return;
     }
     $cachedFile = $this->generateCachedFile($type, $file->getFileName());
     return $this->getUrlToTheAssetLoader($cachedFile['file']);
 }