Last active
December 29, 2015 13:58
-
-
Save charger/7680481 to your computer and use it in GitHub Desktop.
Для Yii-framework (1.1) приложений
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//protected/config/main.php | |
return array( | |
//.. | |
'components'=>array( | |
//... | |
"clientScript"=>array( | |
"class"=>"myClientScript", | |
), | |
//.. | |
), | |
//.. | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
//protected/components/myClientScript.php | |
class myClientScript extends CClientScript { | |
//когда всталяю данные через аякс, то jquery подключается заново, что нарушает мне связь с созданным диалогом | |
public function clearScripFiles(){ | |
$this->coreScripts=array(); | |
$this->scriptFiles=array(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment