Yiistraped \ Yiiwheeled Gii - Alternative Templates\generators?

Hi to all!

I was wondering - it would be great that after YiiStrap Gii generates all views and forms they would contain all UI controls that are in YiiWheels. I have 20 fields in table (and lots of tables in DB) and generated form consists only from 20 similar lines:




<?php echo $form->textFieldControlGroup($model,'stazh_total',array('span'=>5)); ?> 



is this was done intentionally or I just miss something?..

It would be great for example that generated forms already had UI controls form YiiWheel depending of table field (date\number\checkbox…) - so it would be much easier\faster to customize them.

Maybe someone has his own generators to share?

Thanx in advance!

Ok, had to modify CodeGenerator and templates to achieve goals - now I can see nice automatically generated checkboxes (boolean fields) and datepick-fields (with Font Awesome icons). If someone interested - can upload changed files.

Yes please! It’s weird that the bootstrap crud templates are not included by default

Ok - well, if you use Yiistrap it DOES contain bootstrapped gii - you have to change generator path in your config:


'generatorPaths' => array(

                'bootstrap.gii'

            ),



After this you’ll see “bootstrap” link in your Gii - it will generate bootstrapped CRUD.

The problem is it generated just text-fields. I’ve added ability to generate at least date-fields and use of font-awesome in my templates - see archive with my changed files.

P/S/ there just couple of template-files (_form and admin) with changed icons - the rest you can customize by example.

To use fontawesome icons dont forget to download it and use




Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/font-awesome.css');



in your main layout