Bootstrap

Hi, I’m using the bootstrap component in a project yii, I have two themes one for the backend and one for the frontend, how I can do not charge bootstrap in the backend theme? Thank you!

You mean to say you dont want to change theme for backend right ??

If yes then please share your directory structure for your project first.because its depends that how you are managing your forntend and backend in your project.SO, accordingly solution would be different.:)

Thanks for asking

I did this…

I commented the following code in config/main.php

[color="#008800"]‘preload’[/color] [color="#666600"]=>[/color][color="#000000"] array[/color][color="#666600"]([/color] [color="#008800"]‘log’[/color][color="#666600"],[/color] [color="#880000"]//‘bootstrap’,[/color][color="#000000"]

[/color][color="#666600"]),[/color]

I kept

[color="#008800"]‘bootstrap’[/color] [color="#666600"]=>[/color][color="#000000"] array[/color][color="#666600"]([/color] [color="#008800"]‘class’[/color] [color="#666600"]=>[/color] [color="#008800"]‘ext.bootstrap.components.Bootstrap’[/color][color="#666600"],[/color] [color="#008800"]‘responsiveCss’[/color] [color="#666600"]=>[/color] [color="#000088"]true[/color][color="#666600"],[/color] [color="#666600"]),[/color]

And on the theme I want to use the bootstrap wrote the following line

[color="#660066"]Yii[/color][color="#666600"]::[/color][color="#000000"]app[/color]color="#666600"->[/color][color="#000000"]getComponent[/color]color="#666600";[/color]

[size="2"] [/size]

[size="2"][color="#1c2837"]So Yii loaded onto a theme bootstrap and not in the other[/color][/size]

[size="2"] [/size]

[size="2"][color="#1c2837"]Thanks![/color][/size]

Download plugin from yiiframework.com