由于某种原因,我已经覆盖了Joomla的save()函数。
函数的最后一条语句是return $data->player_id;
,它获得了从DB加载数据的相同形式(这很好!)
问题是它显示
Save failed with the following error:
消息甚至每个数据字段都正确保存。
下面是代码片段public function save($data) {
$table_one = $this->getTable('Player', 'footballTable', array());
// Bind the data.
$table_one->bind($data);
// Store the data.
$table_one->save($data);
// Some code here...
return $data->player_id;
}
在文件末尾写这一行:
return true;