×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Perform on clicking Save Button
WebBonus AG
Yeni Üye
Posts: 1
6 yıl 11 ay önce #1721
Yazan: WebBonus AG
Perform on clicking Save Button, WebBonus AG tarafından oluşturuldu
Hello Community,
I have searched the forum but didn't find an answer to my question.
Where do I have to put custom php code that shuld be rum when user clicks the save item button in backend?
Any hints or help on this would be highly appreciated
Thank you and happy new year everyone!
Michael
I have searched the forum but didn't find an answer to my question.
Where do I have to put custom php code that shuld be rum when user clicks the save item button in backend?
Any hints or help on this would be highly appreciated
Thank you and happy new year everyone!
Michael
Lütfen sohbete katılmak için Giriş ya da Hesap açın.
Fran
Yeni Üye
Posts: 5
6 yıl 11 ay önce - 6 yıl 11 ay önce #1722
Yazan: Fran
Fran tarafından Perform on clicking Save Button konusunda yanıtlandı
Hello,
One way you can do this is to override the save method of the model you want to modify. For example you can use the following code inside your class:
Regards.
One way you can do this is to override the save method of the model you want to modify. For example you can use the following code inside your class:
public function save($data)
{
/* Your code here */
return parent::save($data);
}
Regards.
Son Düzenleme: 6 yıl 11 ay önce Düzenleyen:Fran
Lütfen sohbete katılmak için Giriş ya da Hesap açın.
Sayfa oluşturma süresi: 0.048 saniye