-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Global Url Service #1532
Comments
Joined resources are always local. public function testIssue1532()
{
@unlink(__DIR__ . '/assets/production/1532.js');
$di = new \Phalcon\DI\FactoryDefault();
$assets = new \Phalcon\Assets\Manager();
$assets->useImplicitOutput(false);
$assets->collection('js')
->addJs('unit-tests/assets/jquery.js')
->join(true)
->addFilter(new Phalcon\Assets\Filters\Jsmin())
->setTargetPath(__DIR__ .'/assets/production/1532.js')
->setTargetLocal(FALSE)
->setPrefix('//phalconphp.com/')
->setTargetUri('js/jquery.js');
$this->assertEquals($assets->outputJs('js'), '<script type="text/javascript" src="//phalconphp.com/js/jquery.js"></script>' . PHP_EOL);
} |
phalcon
pushed a commit
that referenced
this issue
Nov 25, 2013
Fix #1532 Add Phalcon\Assets\Collection::setTargetLocal
It works, thx @dreamsxin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi all ^^
Output
It currently didn
t work in old opera versions http://gyazo.com/6828afda5351d5fef6cd64ad481e9d3c Assets use Phalcon\\Tag for create tag. why it didn
t use DI? In My Di tag class is \Uniqhand\HelpersIn phalcon tag javascriptInclude and stylesheetInclude use PHP_METHOD(Phalcon_Mvc_Url, getStatic)
this allways concat _staticBaseUri = / + url but my url is //u.handmade.ru/js/vendors.js and output /// 3 slashes
I say about this 3 times but no one fix it and say see dock setPrefix.
Please anyone help with this
The text was updated successfully, but these errors were encountered: