Created
January 9, 2010 14:08
-
-
Save skremiec/272923 to your computer and use it in GitHub Desktop.
[Joomla] Creating date input field with datepicker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Joomla - Creating date input field with datepicker | |
* | |
* @package joomla | |
* | |
* @param $value - initial field value | |
* @param $name - field name | |
* @param $id - input tag id (required by datepicker) | |
* @param $format - http://www.php.net/manual/en/function.date.php | |
* @param $attribs - associative array of HTML input tag attributes | |
*/ | |
echo JHTML::_('behavior.calendar'); | |
echo JHTML::_('calendar', $value, $name, $id, $format, $attribs); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment