I have been using Yii Bootstrap in an application for a while. Now, I have a section where the loaded CSS files are causing issues, and I don't want to load the bootstrap extension in that controller.
In my configuration file, I had bootstrap set to preload:
'preload' => array('log', 'bootstrap')
I have now removed bootstrap from the preload array, and it stops working saying the alias is incorrect:
Alias "bootstrap.widgets.BootNavbar" is invalid. Make sure it points to an existing directory or file.
The alias though has been defined in the components section of the configuration file and works fine when the bootstrap component is preloaded:
'bootstrap' => array(
'class' => 'ext.bootstrap.components.Bootstrap'
),
What can I do to make the bootstrap extension work without preloading it?
bootstrap.widgets.BootNavbar
? Please add it to your question. – BoatloadC:\Program Files\XAMPP\xampp\htdocs\myproject\protected\extensions\bootstrap\widgets\BootNavbar
– Spruikpreload
array, thegetPathOfAlias
returnsfalse
– Spruik