Hi,
It’s possible to render a clientScript already registered in another position that not one of the default options?
Thanks
Hi,
It’s possible to render a clientScript already registered in another position that not one of the default options?
Thanks
Sorry, do you mean that you dont want to register the file repeatly?
if so, you can use this method isCssFileRegistered(string $url) or isScriptFileRegistered(string $url, integer $position=0) of CClientScript first.
Yes, is possible.
You can extend CClientScript and use your own one.
You can create a method for render the script wherever you want, by accessing the protected property script.
As this property is protected, the only way is extend CClientSCript and include in config main:
'clientScript'=>'myClientScript'