/ Published in: PHP
Save the source provided to /app/view/helpers/timezone_select.php
To use the below helper, just put this code into your view:
echo $timezoneSelect->select('timezone', 'Please select your timezone', 'Europe/London');
Also, don't forget to include the helper in your CakePHP controller's action:
$this->helpers[] = 'TimezoneSelect';
Et voila! ;-)
To use the below helper, just put this code into your view:
echo $timezoneSelect->select('timezone', 'Please select your timezone', 'Europe/London');
Also, don't forget to include the helper in your CakePHP controller's action:
$this->helpers[] = 'TimezoneSelect';
Et voila! ;-)