protected function addingAssetUrl($assetUrl,$resources)
    {
        foreach ($resources as &$resource) {
            if (gettype($resource)=="string") {
                $resource = $assetUrl."/".$resource;
            } else if (gettype($resource)=="array") {
                $resource = $this->addingAssetUrl($assetUrl, $resource);
            }
        }
        return $resources;
    }
protected function addingAssetUrl($assetUrl,$resources)
    {
        foreach ($resources as &$resource) {
            if (gettype($resource)=="string") {
                $resource = $assetUrl."/".$resource;
            } else if (gettype($resource)=="array") {
                $resource = $this->addingAssetUrl($assetUrl, $resource);
            }
        }
        return $resources;
    }
protected function addingAssetUrl ( $ assetUrl , $ resources ) { foreach ( $ resources as & $ resource ) { if ( gettype ( $ resource ) == "string" ) { $ resource = $ assetUrl . "/" . $ resource ; } else if ( gettype ( $ resource ) == "array" ) { $ resource = $ this -> addingAssetUrl ( $ assetUrl , $ resource ) ; } } return $ resources ; }
Get resources in short format and return full url
to each component of resources

@param string $assetUrl  The url to asset folder
@param array  $resources Resources in short form

@return array Resource in long form.
Get resources in short format and return full url to each component of resources