I use bootstrap extension in my Yii application. This extension is preloaded in the main config. There are some pages (for specific visitors) that don't need bootstrap. I want to disable this preloaded extension for this controller/actions.
WHy?
A solution is removing bootstrap from preload and load it when needed. But the problem is just 5 percent of the pages don't need bootstrap. Actually I want to preload bootstrap and disable it in certain actions. HOW?
Remove init line bootstrap
from preload
on your config, and use filter to load and restrict it on your controller. It could resolve your problem.
If most of your app use bootstrap, and you recognize updating most of them would be silly thing, just consider this solution if there has no way out.