V
V
Vyacheslav2018-04-17 06:03:55
Yii
Vyacheslav, 2018-04-17 06:03:55

How to display resources with full URL in yii2 using Asset?

Hi all!
is it possible to display the included js and css resources not in the form src="/assets/... /css"
but with the full URL, like src=" https://mysite.com/assets/ ... /css"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kim, 2018-04-17
@nskarl

'components' => [
  'assetManager' => [            
    'baseUrl' => 'http://google.com/'
  ],
],

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question