CakePHP Timezone Select View helper


/ Published in: PHP
Save to your folder(s)

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! ;-)

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.