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
/* | |
* If this doenst work then try the below | |
*/ | |
echo $this->Form->input('Applicant.date_of_birth', array( | |
'type' => 'date', | |
'dateFormat' => 'DMY', | |
'minYear' => date('Y') - 110, | |
'maxYear' => date('Y')- 18, | |
) | |
); |
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
$dob = explode('-', $applicationData['Applicant']['date_of_birth']); | |
$dobDayArray = explode(' ', $dob[2]); | |
$dobDay = $dobDayArray[0]; | |
$dobMonth = $dob[1]; | |
$dobYear = $dob[0]; | |
echo $this->Form->input('Applicant.date_of_birth', array( | |
'type' => 'date', | |
'dateFormat' => 'DMY', |
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 | |
$options = getopt('p:'); | |
$prefix = empty($options['p']) | |
? realpath('.') | |
: realpath($options['p']); | |
if (empty($prefix)) { | |
die("Bad prefix. Try again.\n"); | |
} |