Answer the question
In order to leave comments, you need to log in
How to connect cdn resources with Asset::getInstance()->addJs?
I know how to include a local file, for example
Asset::getInstance()->addCss(SITE_TEMPLATE_PATH."/style/main.css");
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
Answer the question
In order to leave comments, you need to log in
Asset::getInstance()->addString('<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question