Thursday, 15 May 2014

php - How to convert a bootstrap theme to the yii-bootstrap extension? -



php - How to convert a bootstrap theme to the yii-bootstrap extension? -

recently, i've started using yii framework develop personal website. love utilize of bootstrap themes have been implemented; however, i'm having difficulty finding way convert these themes yii framework.

is there way download bootstrap theme , convert yii framework? basic steps should take? (or, better) there converter out there automatically?

download bootstrap ..

then create move project_name/themes , rename bootstrap

edit protected/config/main.php , add together line :

'theme' => 'bootstrap',

like:

'basepath'=>dirname(__file__).directory_separator.'..', 'name'=>'my web application', 'theme' => 'bootstrap',

to phone call script or styles utilize theme request url, like:

script:

<script src="<?php echo yii::app()->theme->baseurl;?>/js/boostrap.js">

style:

<link rel="stylesheet" href="<?php echo yii::app()->theme->baseurl;?>/css/boostrap.css">

this can utilize on other themes.

cheers!

php wordpress twitter-bootstrap yii

No comments:

Post a Comment