Skip to content

Instantly share code, notes, and snippets.

@charger
Last active December 29, 2015 13:58
Show Gist options
  • Save charger/7680481 to your computer and use it in GitHub Desktop.
Save charger/7680481 to your computer and use it in GitHub Desktop.
Для Yii-framework (1.1) приложений
<?php
//protected/config/main.php
return array(
//..
'components'=>array(
//...
"clientScript"=>array(
"class"=>"myClientScript",
),
//..
),
//..
);
<?
//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