KonApaz, on 13 March 2013 - 03:22 PM, said:
I tried in new project but the problem insist...
I checked the files that Yiibooster generates in assets folder
888 Files, 131 Folders, about 6.87 MB
I marked the created, last save, modified Dates for files (on windows 7 - I use wampserver)
I observe that the created date is the same time that the files created in the first request
But the last and modified date are the same with last request time!! So the problem is that the files created again and again for each request!
Also I tested with configutation 'assetManager'=>array('forceCopy'=>true,), but the same problem insist.
Note: the other file in assets that published from other extensions and core Yii widgets not recreated for each request...
I used clevertech-YiiBooster-1.0.5-7-gbf8ace0.zip
So, which is the problem ?
ok, the problem as the yiqing95 said, was the
//defined('YII_DEBUG') or define('YII_DEBUG',true);
Because I have multi project nested in one, I modified the primary index.php but not the appropriate index.php of broject that used the Yiibooster therefore I didn't see any differences
Obviusly the developer team set the Yiibooster to force copy all assets when Yii is on debug mode.
for example I found in bootstrap/components/Bootstrap.php lines 450-460
public function getAssetsUrl()
{
if (isset($this->_assetsUrl))
return $this->_assetsUrl;
else
{
$assetsPath = Yii::getPathOfAlias('bootstrap.assets');
$assetsUrl = Yii::app()->assetManager->publish($assetsPath, false, -1, YII_DEBUG);
return $this->_assetsUrl = $assetsUrl;
}
}
that forces the files of bootstrap/assets folder copy to application/assets folder when
YII_DEBUG is set to true for each request!
$assetsUrl = Yii::app()->assetManager->publish($assetsPath, false, -1, YII_DEBUG);
So the problem is solved!
--------------------------------------------------------
But the other questions remain answered
If anyone knows please inform us
1) I wonder which is the best YiiBooster or Ext4Yii and in which case ?
2) I found in
https://github.com/c...tech/YiiBooster three WYSIWYG HTML Editors
- RedactorJS
- Html5Editor
- CKEditor
But I cannot found snipets or examples of them, even i cannot found the code,
Is there in
https://github.com/c...tech/YiiBooster ?