Browse Source

Fixes #2310

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
076c7cd38c
  1. 6
      framework/widgets/Pjax.php

6
framework/widgets/Pjax.php

@ -120,6 +120,12 @@ class Pjax extends Widget
$view = $this->getView();
$view->endBody();
// Do not re-send css files as it may override the css files that were loaded after them.
// This is a temporary fix for https://github.com/yiisoft/yii2/issues/2310
// It should be removed once pjax supports loading only missing css files
$view->cssFiles = null;
$view->endPage(true);
$content = ob_get_clean();

Loading…
Cancel
Save