リビジョン a5ebb280
| app/Controller/UsersController.php | ||
|---|---|---|
| 62 | 62 |
}else{
|
| 63 | 63 |
} |
| 64 | 64 |
} |
| 65 |
|
|
| 66 |
// if (!empty( $this->data)){
|
|
| 67 |
// // 保存 |
|
| 68 |
// if( $this->User->set( $this->data)){
|
|
| 69 |
// // if( $this->User->save( $this->data)){
|
|
| 70 |
// // ユーザアクティベート(本登録)用URLの作成 |
|
| 71 |
// $url = |
|
| 72 |
// DS . strtolower($this->name) . // コントローラ |
|
| 73 |
// DS . 'activate' . // アクション |
|
| 74 |
// DS . $this->User->id . // ユーザID |
|
| 75 |
// DS . $this->User->getActivationHash(); // ハッシュ値 |
|
| 76 |
// $url = Router::url( $url, true); // ドメイン(+サブディレクトリ)を付与 |
|
| 77 |
// // メール送信 |
|
| 78 |
// // return |
|
| 79 |
// $this->redirect(array('action' => 'confirm'));
|
|
| 80 |
// $this->Session->write('register',$this->request->data);
|
|
| 81 |
// $this->Session->setFlash( '仮登録成功。メール送信しました。'); |
|
| 82 |
// } else {
|
|
| 83 |
// // バリデーションエラーメッセージを渡す |
|
| 84 |
// $this->Session->setFlash( '入力エラー'); |
|
| 85 |
// } |
|
| 86 |
// } |
|
| 87 | 65 |
} |
| 88 | 66 |
|
| 89 | 67 |
/** |
| ... | ... | |
| 107 | 85 |
if( $this->User->save($this->Session->read('register'))){
|
| 108 | 86 |
// メール送信 |
| 109 | 87 |
$this->set('register',$this->Session->read('register'));
|
| 110 |
$name = $this->Session->read('register.user.login_id');
|
|
| 111 |
$mail = $this->Session->read('register.user.email');
|
|
| 88 |
$name = $this->Session->read('register.User.login_id');
|
|
| 89 |
$mail = $this->Session->read('register.User.email');
|
|
| 112 | 90 |
// ユーザアクティベート(本登録)用URLの作成 |
| 113 | 91 |
$url = |
| 114 | 92 |
DS . 'users' . // コントローラ |
| ... | ... | |
| 127 | 105 |
$Email->to('hasegawa@i-hearts.jp');
|
| 128 | 106 |
$Email->subject('[PICT CODE]問い合わせ');
|
| 129 | 107 |
$Email->send(); |
| 130 |
|
|
| 131 |
// return |
|
| 132 |
// $this->redirect(array('action' => 'confirm'));
|
|
| 133 |
// $this->Session->setFlash( '仮登録成功。メール送信しました。'); |
|
| 134 |
// } else {
|
|
| 135 |
// // バリデーションエラーメッセージを渡す |
|
| 136 |
// $this->Session->setFlash( '入力エラー'); |
|
| 137 |
// } |
|
| 138 | 108 |
} |
| 139 | 109 |
|
| 140 | 110 |
} |
| app/View/users/register.ctp | ||
|---|---|---|
| 60 | 60 |
</dl> |
| 61 | 61 |
</section> |
| 62 | 62 |
</fieldset> |
| 63 |
<?php echo $this->Form->submit('送信する',array('class'=>'btn btn-info')); ?>
|
|
| 64 |
<?php echo $this->Form->end(); ?>
|
|
| 63 |
<?php $this->Form->submit('送信する',array('class'=>'btn btn-info')); ?>
|
|
| 64 |
<?php $this->Form->end(); ?> |
|
| 65 | 65 |
<?php //echo $this->Form->end(__('Submit')); ?>
|
| 66 | 66 |
<?php //echo $this->Form->end('Register'); ?>
|
| 67 | 67 |
<?php //echo $this->Form->end(); ?> |
| ... | ... | |
| 70 | 70 |
<a href="javascript:history.back();"> |
| 71 | 71 |
<p class="button btn_back01"></p> |
| 72 | 72 |
</a> |
| 73 |
<a href="/confirm"> |
|
| 73 |
<a href="/users/confirm">
|
|
| 74 | 74 |
<p class="button btn_check01"></p> |
| 75 | 75 |
</a> |
| 76 | 76 |
</section> |
| app/View/users/sent.ctp | ||
|---|---|---|
| 1 | 1 |
<main role="main"> |
| 2 | 2 |
<article class="register"> |
| 3 | 3 |
<h2> |
| 4 |
<img src="img/img_h1_register03.png" alt="PictCode登録 - 情報入力"> |
|
| 4 |
<img src="/img/img_h1_register03.png" alt="PictCode登録 - 情報入力">
|
|
| 5 | 5 |
</h2> |
| 6 | 6 |
<ol> |
| 7 | 7 |
<li id="navigator01_off"></li> |
| ... | ... | |
| 16 | 16 |
</section> |
| 17 | 17 |
</div> |
| 18 | 18 |
<section class="button_area01"> |
| 19 |
<a href="index.html"><p class="button btn_top01"></p></a>
|
|
| 19 |
<a href="/top/index"><p class="button btn_top01"></p></a>
|
|
| 20 | 20 |
</section> |
| 21 | 21 |
</article> |
| 22 | 22 |
</main> |
他の形式にエクスポート: Unified diff