Configure Button in Bootstrap

0

I'm new to Yii and I'm using Bootstrap. I configured it correctly but it is strange in the execution of the page, for example I inserted a button, it is inserted normally only in a simple link form. Why?

<?php /* @var $this SiteController */ $this->pageTitle=Yii::app()->name; ?> 
<?php $this->beginWidget('bootstrap.widgets.TbHeroUnit', array( 'heading'=>'Hello, world!', )); ?> 
<p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>  
<p>
   <?php $this->widget('bootstrap.widgets.TbButton', array( 'type'=>'primary', 'size'=>'large', 'label'=>'Learn more', )); ?>
</p> 
<?php $this->endWidget(); ?>

    
asked by anonymous 11.07.2014 / 18:48

1 answer

2

See documentation that by default it is created as a link

Your line should look like this:

PHP

<?php $this->widget('bootstrap.widgets.TbButton', array(
   'buttonType' => 'button',
   'type' => 'primary',
   'size' => 'large',
   'label' => 'Learn more'
)); ?>

I also advise when using an array, in the last element does not add the comma.

    
14.07.2014 / 14:24