Yii Framework Forum: Yii-Bootstrap安装问题 - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii-Bootstrap安装问题 yii-bootstrap安装问题 Rate Topic: -----

#1 User is offline   silenceper 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 21-October 12

Posted 05 February 2013 - 12:35 PM

yii-bootstrap安装问题:
我根据 根据官方cniska 给的教程来安装,但是我写了一个官方给的例子
<?php $this->widget('bootstrap.widgets.TbButton', array(
    'label'=>'Primary',
    'type'=>'primary', // null, 'primary', 'info', 'success', 'warning', 'danger' or 'inverse'
    'size'=>'large', // null, 'large', 'small' or 'mini'
)); ?>

却没有bootstrap的按钮效果,查看源码发现是没有加入bootstrap的css文件!

这个是什么问题
0

#2 User is offline   silenceper 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 21-October 12

Posted 05 February 2013 - 11:15 PM

这个问题已经解决,我查看卡一下bootstrap下面的theme 发现我没有加上:
<?php Yii::app()->bootstrap->register(); ?>
才导致无法加载css
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users