YiiBooster icon indicating copy to clipboard operation
YiiBooster copied to clipboard

Advice on adding new input widgets to and/or extending TbActiveForm

Open motin opened this issue 11 years ago • 2 comments

We'd like to add more input widgets to TbActiveForm. Doing this be extending the relevant classes is problematic since TbActiveForm, TbInput, TbInputHorizontal, TbInputVertical extend each other.

We figure that this problem was the reason that you decided to maintain your own fork of YiiBootstrap to begin with (instead of creating an extension library that would extend these classes with YbActiveForm etc).

What is your advice for those, like us, cannot rely on sending all our widget's as PR's to be included in YiiBooster, but do not want to create yet another incompatible fork of YiiBootstrap/YiiBooster (something like YiiBoosterBooster)?

Have you for instance considered switching over to YiiStrap+YiiWheels which has a much cleaner architecture without for instance the TbInput[Layout] classes? Currently, these seems to mostly be copy-pasted and slightly modified code, with the main difference between it's methods is wrapping of the elements in <div class="controls"/>, surely this is not a good design to keep moving forward?

motin avatar Jul 10 '13 00:07 motin