yii2-usuario icon indicating copy to clipboard operation
yii2-usuario copied to clipboard

Use version higher than 1.0.13 with yii2-bootstrap 2.1.x

Open kmergen opened this issue 7 years ago • 9 comments

Installing higher version than 1.0.13 with yii2-bootstrap 2.1.x (bootstrap 4) not possible, because yii2-selectize-widget need 2.0.x-dev.

image

kmergen avatar Jan 22 '18 07:01 kmergen

@kmergen That version used on the official yii2 extension was in beta. As soon as they officially do the change, I'll modify all widgets to support that version.

In the meantime, any help is highly appreciated. I am very short in time nowadays.

Thanks for your feedback

tonydspaniard avatar Jan 22 '18 07:01 tonydspaniard

@tonydspaniard thanks. I will use yii2-usuario for my bootstrap 3 jobs and dektrium/yii2-user for bootstrap 4 at the moment.

kmergen avatar Jan 22 '18 09:01 kmergen

Hi all First of all many thanks to yii2-usuario developers.

I'm using Bootstrap 4 vidgets from digitv. Upon install I disabled Bootstrap 3 in my 2.0.13.1 installation, because the above bundle comes with Bootstrap 4 support from twbs. I modified view files from yii2-usuario to match Bootstrap 4 styling and new widgets. Now it looks close to the original version. You can find view files in the attachment. Hope, it may be helpfull. views.zip

olegbolden avatar Feb 20 '18 12:02 olegbolden

I'd rather wait for yii2-bootstrap to release a definitive version of the BS4 extension, as right now there's still an active discussion ongoing on the official repo. They're still arguing if there should be a new repo or just a minor version upgrade (2.1).

I'd wait until that issue is resolved

maxxer avatar Feb 20 '18 13:02 maxxer

@olegbolden I think I agree with @maxxer . We should support what Yii2 offers officially. Nevertheless, I am up to provide a specific branch where you could implement digitv if you wish @olegbolden. That could be a temporary solution for devs willing to use BS4.

tonydspaniard avatar Feb 27 '18 12:02 tonydspaniard

there is already an official repository yiisoft/yii2-bootstrap4

tecnoterabyte avatar Jun 03 '18 14:06 tecnoterabyte

I'm open to create a branch for yiisoft/yii2-bootstrap4, and adding it to the composer.json is pretty trivial. But I wonder how to proceed next.

I see it has no conflict with the current yii2-bootstrap, that means they can be installed together. Shall we keep both? How to understand if we're running on b3 or b4, via config param?

maxxer avatar Jun 04 '18 15:06 maxxer

I think the most advisable thing is to open a new branch just for bootstrap4 without having it mixed with bootstrap3.

tecnoterabyte avatar Jun 05 '18 09:06 tecnoterabyte

I was wondering how to support b4.

From the views posted by @olegbolden I see most of the changes are mainly on the namespaces. But there are some small cases where b3 specific styles has been used. For example the panel elements have been deprecated in favor of cards. This means we should make specific b4 views...

I don't know if mantaining two branches would be ideal. Other than this I think we could duplicate the view files. Not ideal as well, but these are the only options coming to my mind right now.

If anyone has a better solution please share. Thanks

maxxer avatar Sep 11 '18 20:09 maxxer