cakephp初心者です。
ログインページからログインが出来たらブログに移るというのを作っているんですが、新規登録画面でそこに打ち込んだ内容がデータベースでみると全部NULLで入っている状態です。
なぜ情報が反映されないのかどなたか教えてください、宜しくお願いします。
コントローラー↓
public function add() {
$this->loadModel('User');
if ($this->request->is('post')) {
$this->User->create();
$this->User->save($this->request->data);
$this->redirect(array('action' => 'login'));
}
}
View↓
<div class="users form"> <?php echo $this->Form->create('User'); ?> <fieldset> <legend><?php echo __('☆ユーザー登録をしてください☆'); ?></legend> <?php echo $this->Form->input('name'); echo $this->Form->input('pass'); ?> </fieldset> <?php echo $this->Form->end(__('Submit')); ?> </div>回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/11/30 13:21
2015/11/30 13:31
2015/11/30 13:34
2015/11/30 16:11