Setting absolute path in Phalcon\Assets\Resource:: setTargetUri()

In order to use a different server to deliver static files

When setting: $this->assets->setTargetUri('')

This results in

<script src="/" type="text/javascript"></script>

with a slash at the beginning. Am I right, when saying there's no possibilty to change this? :)

edited Jul '14

Hi metin. I think now you can use / for hack it and please create a bug report on github for it.

: $this->assets->setTargetUri('/')


Why not use addJs method?

$this->assets->addJs('', false);

@andrey i think he use compress js code to 1 file and put it to static subdomain. My opinion u misunderstood what he wants to do.

edited Jul '14

@boston hm bad idea when I use it in layout I rewrite base uri. on my project I use 2 subdomains it's bug because if you try to \Phalcon\Tag::linkTo(array('''')) you see that url is / global bug with urls and subdomains