Recently launched YiiBooster, YiiBooster is a collection of widgets that will ease the task of developing Yii applications, as well as, giving your application a little boost. Basically, YiiBooster tackles the most common challenges that Yii developers face while trying to enhance their applications.
The types are an array where the ‘KEYS’ are actually the values to check for and they are required to have a label property set in an array. You are just returning an array of CActiveRecords and that doesnt work like this. I recommend you to create afunction that returns the types array as stated above.
In order to get the correct configuration array, I highly recommend you to check the code of the widget TbPercentOfTypeGooglePieOperation that is written within the TbExtendedGridView widget.
JQGrid is an excellent tool, but we would like to keep the Bootstrap lookalike and nowadays JQGrid has issues with this theme. If you find a way to include the widget with the possibility to have Bootstrap theme and does not have issues and/or conflicts. They will be added to it.
I have a question in regards to themeing/customization and using LESS. If I wanted to customize my theme (pretty much adjusting everything found in the “Customize Variables” section in the Twitter Bootstrap download page), what’s the best way to do it? Would it be to just customize it from Twitter Bootstrap? What about the other CSS that’s not TB related (e.g. jquery-ui related ones, bootstrap-yii.less?)?
What’s the safest way to make sure my customizations are applied throughout the entire library? Is it with LESS? And if so, do we just grab the *.less source files from Twitter Bootstrap and go from there?
I guess I’m looking for some kind of guide
Anyway, awesome work (and much thanks to Chris for kicking off the original extension)! I love the ease of use and functionality of Twitter Bootstrap and these extensions… but I’m horrible at applying a theme that will make my site a bit different from the other TB-based sites out there
The library references to *.css files (check assets folder of the extension), I know that .less is a cool way to do many things, but I tend to use tools like: http://stylebootstrap.info/ which easiest my work on customizing… Also, Booster has many references to many libraries that do not use .less… I guess we need some volunteers to make such huge transformation.
In order to use DatePicker plugin and some other widgets that require configuration options, please within the htmlOptions the ‘options’ key with the array of configuration options of that widget:
When you have issues with other plugins, please check TbInputVertical and TbInputHorizontal to review the way different options are taken from htmlOptions to construct the widget. This was included in order to maintain bc widgets construction with Bootstrap library.
You deserve your ‘elite’ status thanks that worked perfectly. Lastly, is there a way to get the picker to close once a date is clicked? I have to click away at the moment.
my relation table in the picture, what i want is data from jenisbarang->nama, in cgridview it work fine, but with TbEditableColumn, it cant detect relation
this is debug result
Querying SQL: SELECT `idBarang0`.`idBarang` AS `t1_c0`,
`idBarang0`.`idJenisBarang` AS `t1_c1`, `idBarang0`.`idUserLogin` AS
`t1_c2`, `idBarang0`.`nama` AS `t1_c3`, `idBarang0`.`lokasi` AS `t1_c4`,
`idBarang0`.`kode` AS `t1_c5`, `idBarang0`.`modal` AS `t1_c6`,
`idBarang0`.`laba` AS `t1_c7`, `idBarang0`.`jumlah` AS `t1_c8`,
`idBarang0`.`terjual` AS `t1_c9` FROM `barang` `idBarang0` WHERE
(`idBarang0`.`idBarang`=:ypl0). Bound with :ypl0=NULL
in
D:\htdocs\plath\protected\extensions\bootstrap\widgets\TbEditableColumn.php
(45)
in D:\htdocs\plath\protected\views\transaksi\isiStok\admin.php (279)
in D:\htdocs\plath\protected\controllers\TransaksiController.php (89)
in D:\htdocs\plath\protected\modules\rights\components\RController.php (36)
in D:\htdocs\plath\index.php (18)
i dont know what about other editable, are they like this too (cant detect AR) ?
TbEditableColumn is extended from TbDataColumn > CDataColumn, so, could you please check whether the relation works with simple column before? I guess there is an issue with your SQL.
// ON YOUR DEBUG!!!!
SELECT `idBarang0`.`idBarang` AS `t1_c0`,
`idBarang0`.`idJenisBarang` AS `t1_c1`, `idBarang0`.`idUserLogin` AS
`t1_c2`, `idBarang0`.`nama` AS `t1_c3`, `idBarang0`.`lokasi` AS `t1_c4`,
`idBarang0`.`kode` AS `t1_c5`, `idBarang0`.`modal` AS `t1_c6`,
`idBarang0`.`laba` AS `t1_c7`, `idBarang0`.`jumlah` AS `t1_c8`,
`idBarang0`.`terjual` AS `t1_c9` FROM `barang` `idBarang0` WHERE
(`idBarang0`.`idBarang`=:ypl0). Bound with :ypl0=NULL <----- SEE?