public function registerClientScript()
    {
    	$view = $this->getView();
    	PNotifyAsset::register($view);

    	$options = empty($this->pluginOptions) ? '' : Json::encode($this->pluginOptions);
    	$js = "new PNotify(".$options.");";

    	$view->registerJs($js);
    }
public function registerClientScript()
    {
    	$view = $this->getView();
    	PNotifyAsset::register($view);

    	$options = empty($this->pluginOptions) ? '' : Json::encode($this->pluginOptions);
    	$js = "new PNotify(".$options.");";

    	$view->registerJs($js);
    }
public function registerClientScript ( ) { $ view = $ this -> getView ( ) ; PNotifyAsset :: register ( $ view ) ; $ options = empty ( $ this -> pluginOptions ) ? '' : Json :: encode ( $ this -> pluginOptions ) ; $ js = "new PNotify(" . $ options . ");" ; $ view -> registerJs ( $ js ) ; }
Register js initialization script.
Register js initialization script .