I've added two new fields to my subscription database table namely first_name
and last_name
to table subscriptions
しかし、フォームから返された値を取得して保存しようとすると、データベースに保存されません。
私のコードは以下の通りです
$this->data['Subscription']['id'] = $subscription['Subscription']['id']; //To get the primary key
$this->data['Subscription']['first_name']; //Echoes out the name I entered
$this->data['Subscription']['last_name']; //Echoes out the surname I entered
Then I call $this->Subscription->save();
WHICH SAVES ALL OTHER FIELDS except the fields I've newly added to the table, I tried $this->Subscription->set($this->data['Subscription']); and also nothing wants to save?
私はここで間違っているのか分からないのですか?どんな援助も高く評価されます!!!!