yii-bootstrap: Opening modal window from BootNavbar
I am using Yii-bootstrap widgets for creating my website.
http://www.yiiframework.com/extension/bootstrap/

http://www.cniska.net/yii-bootstrap/

I am trying to use the "BootButton" as a part of the BootNavbar menu to open a "BootModal" login component. The BootModal component works fine when I try it out as it is, but does not work when I incorporate the button as a part of the menu. It also does not give me any error, but just comes up with a blank page.

The code is as follows

    <?php $this->widget('bootstrap.widgets.BootButton', array(
    'label'=>'Click me',
    'url'=> array('/site/login#mylogin'),
    'type'=>'primary',
    'htmlOptions'=>array('data-toggle'=>'modal'),
     )); ?>

    <?php $this->widget('bootstrap.widgets.BootNavbar', array(
    'fixed'=>false,
    'brand'=>'Test',
    'brandUrl'=>Yii::app()->request->baseUrl,
    'collapse'=>true, // requires bootstrap-responsive.css
    'items'=>array(
        array(
            'class'=>'bootstrap.widgets.BootMenu',
            'htmlOptions'=>array('class'=>'pull-right'),
            'items'=>array(
                array('label'=>'Blog', 'url'=>array('post/index')),
                '---',
                /*array('label'=>'Login', 'url'=>array('site/login'), 'visible'=>Yii::app()->user->isGuest),*/
                **array('class' => 'bootstrap.widgets.BootButton',
                'label'=>'Login',
                'url'=> array('/site/login#mylogin'),
                'visible'=>Yii::app()->user->isGuest,
                'type'=>'primary',
                'htmlOptions'=>array('data-toggle'=>'modal'),
                ),**
                array('label'=> Yii::app()->user->name, 'url'=>'#', 'items'=>array(
                    array('label'=>'Account Settings', 'url'=>'#'),
                    array('label'=>'Logout', 'url'=>array('site/logout')),
                ),
                'visible'=>!Yii::app()->user->isGuest),
            ),
        ),
    ),
    )); ?>
yii-bootstrap: Opening modal window from BootNavbar
===

I am using Yii-bootstrap widgets for creating my website.
http://www.yiiframework.com/extension/bootstrap/

http://www.cniska.net/yii-bootstrap/

I am trying to use the "BootButton" as a part of the BootNavbar menu to open a "BootModal" login component. The BootModal component works fine when I try it out as it is, but does not work when I incorporate the button as a part of the menu. It also does not give me any error, but just comes up with a blank page.

The code is as follows

    <?php $this->widget('bootstrap.widgets.BootButton', array(
    'label'=>'Click me',
    'url'=> array('/site/login#mylogin'),
    'type'=>'primary',
    'htmlOptions'=>array('data-toggle'=>'modal'),
     )); ?>

    <?php $this->widget('bootstrap.widgets.BootNavbar', array(
    'fixed'=>false,
    'brand'=>'Test',
    'brandUrl'=>Yii::app()->request->baseUrl,
    'collapse'=>true, // requires bootstrap-responsive.css
    'items'=>array(
        array(
            'class'=>'bootstrap.widgets.BootMenu',
            'htmlOptions'=>array('class'=>'pull-right'),
            'items'=>array(
                array('label'=>'Blog', 'url'=>array('post/index')),
                '---',
                /*array('label'=>'Login', 'url'=>array('site/login'), 'visible'=>Yii::app()->user->isGuest),*/
                **array('class' => 'bootstrap.widgets.BootButton',
                'label'=>'Login',
                'url'=> array('/site/login#mylogin'),
                'visible'=>Yii::app()->user->isGuest,
                'type'=>'primary',
                'htmlOptions'=>array('data-toggle'=>'modal'),
                ),**
                array('label'=> Yii::app()->user->name, 'url'=>'#', 'items'=>array(
                    array('label'=>'Account Settings', 'url'=>'#'),
                    array('label'=>'Logout', 'url'=>array('site/logout')),
                ),
                'visible'=>!Yii::app()->user->isGuest),
            ),
        ),
    ),
    )); ?>