Yii - How to get Yii to republish the resource folder

Question Yii.

On my development machine, the required jQuery files for the application were present in a subfolder in the resource folder. However, when I copied the application to my test server, the jQuery files were not in the yii folder that was looking for them. I kept getting errors like "../assets/db0e5a94/jquery.ba-bbq.js" 404 not found, etc.

I emptied the resource folder, and now all my CSS files, etc. not specified. Is there a way to force Yii to reissue the resource folder?

Thank!

+5
source share
5 answers

Just delete all subdirectories in the resource folder and clear your browser cache. Do not delete the resource directory or you will have to set the write permissions again.

+9

/Controller.php :

protected function beforeAction($action){
    if(defined('YII_DEBUG') && YII_DEBUG){
        Yii::app()->assetManager->forceCopy = true;
    }
    return parent::beforeAction($action);
}
+3

- framework . , , , .

0

SAFE_MODE php.ini. asstes . , CHMOD 0777 .

0

. 755 . .

0

All Articles