2amigos / yiiwheels

Widget extension library for the YiiStrap extension
http://yiiwheels.2amigos.us
Other
133 stars 77 forks source link

How to use WhDatePickerHelper? #119

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hi, i want to use WhDatePickerHelper. But my code always tried like the document of yiiwheels, its not finish. I use yiistrap 1.3.0 and yiiwheels 1.0.4. This my code : <?php $tanggal = $this->widget('yiiwheels.widgets.formhelpers.WhDatePickerHelper', array( 'model' => $model, 'attribute' => 'CUR_DATE', 'inputOptions' => array('class' => 'input-medium'), 'name' => 'datepicker', ), true); ?> <?php echo TbHtml::customControlGroup($tanggal, $model, 'CUR_DATE', array('span'=>6)); ?>

tonydspaniard commented 9 years ago

https://github.com/2amigos/yiiwheels-docs/blob/master/app/views/site/inputs.php#L562

If you use attribute and model there is no need for the name