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
| public function copy_daily() { | |
| $users = $this->User->find('all'); | |
| $current_date = Date("Y-m-d H:i:s"); | |
| $email_date = Date("Y-m-d", strtotime($current_date)); | |
| foreach ($users as $user): | |
| $user_email = $user['User']['email']; | |
| $user_id = $user['User']['id']; |
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
| public function mail() { | |
| $NewDate=Date('y:m:d', strtotime("+2 days")); | |
| $emails = $this->Issue->find('list',array( | |
| 'conditions' => array('Issue.date_target' => $NewDate), | |
| 'fields' => array('Issue.owner_id') | |
| )); | |
| //foreach($emails as $email): | |
NewerOlder