I would like to know is there a way to check if a coreScript is already registered?
for example the yiiactiveform
Yii::app()->clientScript->registerCoreScript('yiiactiveform');
how to check if this corescript is already registered?
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why do you need to know this? The framework is smart enough to not register the same script twice.
It seems to me that you can use
or extend CClientScript and implement a function to answer this, but that might be overkill.