behaviors/ExtensionBehavior.php
public function registerScriptFile($url, $position = null)
    {
        if (($cs = $this->getClientScript()) === false) {
            return null;
        }
        if (isset($this->_assetsUrl)) {
            $url = $this->_assetsUrl . '/' . ltrim($url, '/');
        }
        return $cs->registerScriptFile($url, $position);
    }
public function registerScriptFile($url, $position = null)
    {
        if (($cs = $this->getClientScript()) === false) {
            return null;
        }
        if (isset($this->_assetsUrl)) {
            $url = $this->_assetsUrl . '/' . ltrim($url, '/');
        }
        return $cs->registerScriptFile($url, $position);
    }
public function registerScriptFile ( $ url , $ position = null ) { if ( ( $ cs = $ this -> getClientScript ( ) ) === false ) { return null ; } if ( isset ( $ this -> _assetsUrl ) ) { $ url = $ this -> _assetsUrl . '/' . ltrim ( $ url , '/' ) ; } return $ cs -> registerScriptFile ( $ url , $ position ) ; }
Registers a JavaScript file.
@param string $url URL of the javascript file.
@param integer $position the position of the JavaScript code.
@return CClientScript the client script component.
Registers a JavaScript file .