title: Yii - YiiStrap - TbNavbar - set active menu item
body: <p>I'm using Yiistrap (<a href="http://www.getyiistrap.com/" rel="nofollow">http://www.getyiistrap.com/</a>) on my site.  I am using the TbNavbar widget in my theme.  However, I can't seem to figure out how the various menu items are supposed to become active based on the page you are on.  Is it supposed to happen automatically based on the URL that you are at, or do I have to write a function that looks at the current URL and explicitly set the given menu item to active?</p>
  
  <pre><code>$arNavbar = array(
    'brandLabel' =&gt; false,
    'collapse' =&gt; true,
    'display' =&gt; null, // default is static to top
    'items' =&gt; array(
      array(
          'class' =&gt; 'bootstrap.widgets.TbNav',
          'items' =&gt; array(
              array('label' =&gt; 'Home', 'url' =&gt; '/', 'active' =&gt; true),
              array('label' =&gt; 'Docs', 'url' =&gt; '/docs'),
              array('label' =&gt; 'Stuff', 'url' =&gt; '/stuff'),
              array('label' =&gt; 'Things', 'url' =&gt; '/things'),
              array('label' =&gt; 'About', 'url' =&gt; '/about'),
          ),
      ),
    ),
  );
  </code></pre>
  
  <p>Home is always active</p>
  
  <pre><code>....
          'items' =&gt; array(
              array('label' =&gt; 'Home', 'url' =&gt; '/'),
              array('label' =&gt; 'Docs', 'url' =&gt; '/docs'),
              array('label' =&gt; 'Stuff', 'url' =&gt; '/stuff'),
              array('label' =&gt; 'Things', 'url' =&gt; '/things'),
              array('label' =&gt; 'About', 'url' =&gt; '/about'),
          ),
  ....
  </code></pre>
  
  <p>Nothing is ever active</p>