0
I’m new to Yii and I’m wearing Bootstrap. I set it right but it is strange in the execution of the page, for example I inserted a button, it is inserted normally only in the form of simple link. 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(); ?>
If you can post an example of the error will make it easy enough to help you
– Erlon Charles
Really and question is not very well formatted, but I think it is too early to think about closing it, let’s wait a while and the answer of the author of the question.
– Silvio Andorinha
Author of the question, take a look at this How to ask
– Silvio Andorinha
I put an image to make it clear
– user3677610
Now put your HTML too. without seeing how you’re putting the button, there’s no help
– Caputo
<?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(); ?>
– user3677610
that’s what the site provided me
– user3677610
@user3677610 please edit your question and put this one code
– Silvio Andorinha
You got it right here
'label'=>'Learn more',
one more comma, the one from the end. Experiment without it.– Jorge B.