Created
September 23, 2014 16:26
-
-
Save taleeb35/a1ca2ef7dc5214e72f0d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 echo $this->Form->input('day_of_week',array('type' => 'select','options' => array( | |
'1' => 'Monday', 'Tuesday' => 'Tuesday','Wednesday' => 'Wednesday','Thursday' => 'Thursday', | |
'Friday' => 'Friday','Saturday' => 'Saturday','Sunday' => 'Sunday'))); ?> |
jadb
commented
Sep 23, 2014
Another option is to do it is array(1 => 'monday', 'tuesday', wednesday', thursday', 'friday', 'saturday', 'sunday') that should index starting from 1 versus 0
1 for monday 2 for tuesday and so on
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment