Posted By

richt on 07/10/10


Tagged

select php timezone cakephp


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

widgetyegg
hmvrulz


CakePHP Timezone Select View helper


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

Report this snippet  

You need to login to post a comment.