public function registerClientScript()
    {
        if (!empty($this->pluginOptions)) {
            $options = \CJavaScript::encode($this->pluginOptions);
            \Yii::app()->clientScript
                ->registerScript('Orbit#' . $this->getId(), "$(document).foundation('orbit', {$options});");
        }

        if (!empty($this->events)) {
            $this->registerEvents("#{$this->getId()}", $this->events);
        }
    }
public function registerClientScript()
    {
        if (!empty($this->pluginOptions)) {
            $options = \CJavaScript::encode($this->pluginOptions);
            \Yii::app()->clientScript
                ->registerScript('Orbit#' . $this->getId(), "$(document).foundation('orbit', {$options});");
        }

        if (!empty($this->events)) {
            $this->registerEvents("#{$this->getId()}", $this->events);
        }
    }
public function registerClientScript ( ) { if ( ! empty ( $ this -> pluginOptions ) ) { $ options = \ CJavaScript :: encode ( $ this -> pluginOptions ) ; \ Yii :: app ( ) -> clientScript -> registerScript ( 'Orbit#' . $ this -> getId ( ) , "$(document).foundation('orbit', {$options});" ) ; } if ( ! empty ( $ this -> events ) ) { $ this -> registerEvents ( "#{$this->getId()}" , $ this -> events ) ; } }
Registers the plugin script
Registers the plugin script