Hi,
How can in include css file in my project?
I use yiistrap and use this code in main.php:
<?php Yii::app()->bootstrap->register(); ?>
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/style.css" />
but in client side, i see thi code:
<link rel="stylesheet" type="text/css" href="/ali/themes/reza/css/style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="/ali/assets/7b69d932/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="/ali/assets/7b69d932/css/bootstrap-responsive.css" />
<link rel="stylesheet" type="text/css" href="/ali/assets/7b69d932/css/yiistrap.css" />
i want customize some class(like body) and yiistrap override this!
how can i do?
update
I can’t undrestand but when i change this code:
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/style.css" />
<title><?php echo CHtml::encode($this->pageTitle); ?></title>
to this:
<title><?php echo CHtml::encode($this->pageTitle); ?></title>
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/style.css" />
thats promlem fixed!