Splits a date string into dropdown lists.
ActiveDateList creates dropdown lists from a date string.
For configuration examples, please see the examples for the $displayFormat property.
Resources ¶
Documentation ¶
Requirements ¶
Installation ¶
- Extract the release file under
protected/extensions
Configuration ¶
- See property descriptions in ActiveDateList.php
Change Log ¶
April 6, 2010 ¶
Total 3 comments
Hello,
I'm trying to use your widget to input users birthdate but it isn't possible to display older dates then timestemp = 0 (01-01-1970). am I missing somthing or is this an issue?
Seems a great extension as waveslider said but I have the same issue
Troubleshooted just few minutes without solving..
This seems like a great extension. It should do exactly what I need for my application.
However, I cannot get it to work, and I am not sure if I have mis-configured it or if it has a bug of some kind.
The lists are created OK when the "page" containing them is requested via GET, but when the form is POSTed, I get the following error:
The following is my configuration for the widget in my view:
$this->widget('ActiveDateList', array( 'model' => $student, 'attribute' => 'beginStudies', 'keySort' => true, 'startDate' => '2010-08-01', 'endDate' => '2020-12-31', ));And here is where I've attached the event handler in my controller:
$student = new User; $student->setScenario('registerStudent'); ActiveDateList::sanitize($student, 'beginStudies');I have used the default displayFormat configuration for the purpose of troubleshooting this issue.
Leave a comment
Please login to leave your comment.