This extension is a widget that creates date dropdowns. It can display any or all of year, month, and day.
Based on the Smarty function {html_select_date} http://www.smarty.net/manual/en/language.function.html.select.date.php
protected/extensionsSee the following code example:
$this->widget('application.extensions.EHtmlDateSelect', array( 'time'=>$model->dateField, 'field_array'=>'ItemsDate', 'prefix'=>'', 'field_order'=>'DMY', 'start_year'=>2010, 'end_year'=>2012, ) );
Total 6 comments
Hi , Thanks for this extension . But in my test it is still showing 31 days for February month . Does it supposed to show based on the month and the year selected . Could you please advise or Am I doing some thing wrong ?
Thanks Yii Fan
Small matter, but the name of the extension does not match the name of the extension directory.
Extension directory: ehtmldatAselect
Extension name: ehtmldatEselect
(capitalization added for emphasis)
Very nice extention. I would recommand for next release to have:
'model' => $model, 'attribute' => 'birthdate',
instead of:
'time'=>$model->birthdate, 'field_array'=>'ItemsDate',
and a Behavour to recompose date onBeforeValidate
Nice job, thanks
It would be very nice to see this hooked into a model and able to pull currently selected value from the model.
This was quite easy to implement and saves a lot of repitative 'grunt work', thanks!
Cool extension... just what I needed. Thanks!
~thinkt4nk
Leave a comment
Please login to leave your comment.