Yiibooster Vs. Bootstrap

I need a navbar (having static content) which I find Yiibooster offers as [font=“Courier New”]bootstrap.widgets.TbNavbar[/font]. What I’m trying to understand is what are the pros and cons of using [font=“Courier New”]bootstrap.widgets.TbNavbar[/font] version as opposed to directly using bootstrap’s navbar.

One pro that I can think of is that using [font="Courier New"]bootstrap.widgets.TbNavbar[/font] insulates me from underlying bootstrap css changes and can perhaps upgraded/migrate to a newer version more easily. But can I customize as easily?

I guess this is a generalized question. When I have static content that’s not tied to any model etc., which version should I stick to? Yiibooster’s or direct twitter bootstrap and why?

Creating static navbar is, like, six lines of HTML.

Why on earth everybody wants an extension for simple things?..

So I’ve got [font=“Courier New”]yiibooster[/font] integrated into my app. I’m trying to figure out how to use the bootstrap directly from yiibooster extension folder: [font=“Courier New”]yiibooster/assets/bootstrap/css[/font].

For example, the bootstrap default navbar example page here, gives the following html:




<nav class="navbar navbar-default" role="navigation">

  <!-- Brand and toggle get grouped for better mobile display -->

  <div class="navbar-header">

  <!-- More code here--> 

  </div>

</nav>



I can’t find [font=“Courier New”]navbar-default[/font] in any of the css files available @ [font=“Courier New”]yiibooster/assets/bootstrap/css[/font].

The corresponding yiibooster code is:




$this->widget(

	'bootstrap.widgets.TbNavbar',

	array(

		'brand' => $this->pageTitle,

		'fixed' => false,

		'items' => array(

			array(

				'class' => 'bootstrap.widgets.TbMenu',

				'items' => array(

					array('label' => 'Home', 'url' => Yii::app()->createUrl('/site/index'), 'active' => true),

					array('label' => 'About', 'url' => Yii::app()->createUrl('/site/page', array('view'=>'about'))),

					array('label' => 'Contact', 'url' => Yii::app()->createUrl('/site/contact')),

					array('label' => 'Login', 'url' => Yii::app()->createUrl('/site/login')),

				)

			)

		)

	)



If you could help, I would certainly like to avoid using extensions unnecessarily.

I suppose yiibooster uses Bootstrap 2, and the current version is 3, so you need an older version of docs, that can be found here:

http://getbootstrap.com/2.3.2/

Navbar