components/TbApi.php
public function registerCoreScripts($url = null, $position = CClientScript::POS_END)
    {
        if ($url === null) {
            $fileName = YII_DEBUG ? 'bootstrap.js' : 'bootstrap.min.js';
            $url = $this->getBootstrapUrl() . '/js/' . $fileName;
        }
        /** @var CClientScript $cs */
        $cs = Yii::app()->getClientScript();
        $cs->registerCoreScript('jquery');
        $cs->registerScriptFile($url, $position);
    }
public function registerCoreScripts($url = null, $position = CClientScript::POS_END)
    {
        if ($url === null) {
            $fileName = YII_DEBUG ? 'bootstrap.js' : 'bootstrap.min.js';
            $url = $this->getBootstrapUrl() . '/js/' . $fileName;
        }
        /** @var CClientScript $cs */
        $cs = Yii::app()->getClientScript();
        $cs->registerCoreScript('jquery');
        $cs->registerScriptFile($url, $position);
    }
public function registerCoreScripts ( $ url = null , $ position = CClientScript :: POS_END ) { if ( $ url === null ) { $ fileName = YII_DEBUG ? 'bootstrap.js' : 'bootstrap.min.js' ; $ url = $ this -> getBootstrapUrl ( ) . '/js/' . $ fileName ; } /** @var CClientScript $cs */ $ cs = Yii :: app ( ) -> getClientScript ( ) ; $ cs -> registerCoreScript ( 'jquery' ) ; $ cs -> registerScriptFile ( $ url , $ position ) ; }
Registers jQuery and Bootstrap JavaScript.
@param string $url the URL to the JavaScript file to register.
@param int $position the position of the JavaScript code.
Registers jQuery and Bootstrap JavaScript .