This file contains 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 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 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
//current find results look like this | |
array | |
0 => | |
array | |
0 => | |
array | |
'year' => string '2012' (length=4) | |
'month' => string 'May' (length=3) | |
'count' => string '5' (length=1) | |
1 => |
This file contains 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
//set error handling up | |
libxml_use_internal_errors(true); | |
//path to the validation file | |
$validationSchema = dirname(__FILE__).DS.'docs'.DS.'tff'.DS.'XMLImport.xsd'; | |
//set up a new document to work with | |
$doc = new DOMDocument(); | |
$doc->formatOutput = true; | |
$doc->preserveWhiteSpace = false; |
This file contains 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
class User extends AppModel { | |
public $name = 'User'; | |
public $belongsTo = array( | |
'FriendOne' => array( | |
'className' => 'Friend', | |
'foreignKey' => 'friend_1_id', | |
), | |
'FriendTwo' => array( | |
'className' => 'Friend', | |
'foreignKey' => 'friend_2_id', |
This file contains 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 | |
/* Users Test cases generated on: 2012-03-13 19:59:39 : 1331668779*/ | |
App::uses('UsersController', 'Controller'); | |
/** | |
* TestUsersController * | |
*/ | |
class TestUsersController extends UsersController { | |
/** | |
* Auto render |
This file contains 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
SELECT | |
* | |
FROM | |
wp_posts | |
WHERE | |
post_content LIKE '%basicpills.com%' | |
OR post_content LIKE '%getrxpills.com%' | |
OR post_content LIKE '%antibiotics-shop.com%' | |
OR post_content LIKE '%generic-ed-pharmacy.com%' | |
OR post_content LIKE '%rx-prices.com%' |
This file contains 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
<a href="http://(basicpills.com|getrxpills.com|antibiotics-shop.com|generic-ed-pharmacy.com|rx-prices.com|hotspill.com).+?(</a>) |
This file contains 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 | |
$page = get_page_by_path('page-parts/testimonials-intro'); | |
//echo do_shortcode($page->post_content); | |
echo do_shortcode(wpautop($page->post_content)); // this will add the paragaphs automatically this can be a bit more useful than the above | |
?> |
This file contains 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
<div class="applicants form"> | |
<?php echo $this->Form->create('PrimaryApplicant', array('url' => array('controller' => 'applications', 'personal')));?> | |
<?php echo $this->element('forms/personal'); ?> | |
<?php echo $this->Form->submit('Continue', array('div' => false)); ?> | |
<?php echo $this->Form->submit('Cancel', array('name' => 'Cancel', 'div' => false, 'class' => 'cancel')); ?> | |
<?php echo $this->Form->end();?> | |
</div> |