數據即將這種形式更新查詢在蛋糕PHP不工作
Array
(
[User] => Array
(
[first_name] => sxsaxs
[last_name] => sdsdsd
[contact_no] => 9569908024
[address_1] => sdasd
[address_2] => dsdsdsd
[country_id] => 1
[state_id] => 1
[city_id] => 1
)
)
users_controller.php中
public function my_account_edit(){
if(!empty($this->data))
{
$this->User->id = $this->Auth->user('id');
// echo $id= $this->User->id = $this->Auth->user('id'); it's working echo id
if($this->User->save($this->data['User']))
{
$this->Session->setFlash("Account has been saved");
$this->redirect(array('action' => 'my_account'));
}
}
但更新查詢不能在ID = $這個 - > Auth->用戶(」 ID');
我沒有得到哪裏是我的代碼問題
'id'是沒有得到設爲您可以將您的打印陣列看...... – Rikesh 2012-04-09 08:07:02