To install yiisoft/yii2-bootstrap5, add the repo to the require section of your application's composer.json. Similarly, if bsVersion is set to 3.x and yiisoft/yii2-bootstrap is not installed, an exception message will be thrown mentioning you to install the yiisoft/yii2-bootstrap extension. If bsVersion is set to 4.x and yiisoft/yii2-bootstrap4 is not installed, then an exception message will be thrown mentioning you to install the yiisoft/yii2-bootstrap4 extension. If bsVersion is set to 5.x and yiisoft/yii2-bootstrap5 is not installed, then an exception message will be thrown mentioning you to install the yiisoft/yii2-bootstrap5 extension. This dependency has not been pre-built into the composer configuration for Krajee extensions, to allow better control to the developers in configuring their bootstrap library version. You need to install one of yiisoft/yii2-bootstrap or yiisoft/yii2-bootstrap4 or yiisoft/yii2-bootstrap5 extensions manually in your application to enable Bootstrap 3.x or 4.x or 5.x functionality respectively. Bootstrap 3.x version will be assumed as default). If ColorInput::bsVersion property is not set, and Yii::$app->params is also not set, ColorInput::bsVersion property will default to 3.x (i.e. 'adminEmail' => ColorInput::bsVersion property is set, in addition to Yii::$app->params, the extension level setting ( ColorInput::bsVersion property) will override the Yii::$app->params. 'bsVersion' => '5.x', // this will set globally `bsVersion` to Bootstrap 5.x for all Krajee Extensions To set this up, add this section of code to your application params configuration file (e.g. In order to do this, you can setup the bsVersion property within Yii 2 application params (i.e. Generally, you may also want to set a default version globally for all Krajee Extensions (instead of setting it for each widget or extension separately).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |