D
D
des1roer2015-04-30 08:44:27
Yii
des1roer, 2015-04-30 08:44:27

Yii disable assets?

edit css. It's not nice when you change something, but nothing changes. Like there is a mandatory creation of resources. but I think it's better to disable their publication for a while

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
The Dragger, 2015-04-30
@IPD2

You can’t turn them off, even if you delete them, they are created back. To my shame, I did not remember why it is needed. But she's useful.

V
Vadim Stepanov, 2015-04-30
@Vdm17

You have 2 options to choose from:
www.yiiframework.com/doc/api/1.1/CAssetManager#lin... - creates symbolic links to assets when you change files - they are immediately available
or
www.yiiframework.com/doc/api /1.1/CAssetManager#for... - will always force copies of assets every time the application starts. A great option is to set the YII_DEBUG constant as a value so that only in debug mode this property is used.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question