Commits

Christoffer Niska committed 1113934

fixed the home link in the demo navbar

  • Participants
  • Parent commits 0df8533
  • Branches bootstrap-2.0.1

Comments (0)

Files changed (1)

File demo/protected/views/layouts/main.php

 		array(
 			'class'=>'BootMenu',
 			'items'=>array(
-				array('label'=>'Demo', 'url'=>array('site/index')),
+				array('label'=>'Demo', 'url'=>Yii::app()->homeUrl,
+						'active'=>Yii::app()->controller->id === 'site' && Yii::app()->controller->action->id === 'index'),
 				array('label'=>'Setup', 'url'=>array('site/setup')),
 			),
 		),