×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Perform on clicking Save Button
WebBonus AG
New Member
Posts: 1
6 年 10 个月 前 #1721
由 WebBonus AG
Perform on clicking Save Button was created by WebBonus AG
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
Please 登录 或 注册一个帐号 to join the conversation.
Fran
New Member
Posts: 5
6 年 10 个月 前 - 6 年 10 个月 前 #1722
由 Fran
Replied by Fran on topic Perform on clicking Save Button
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.
Last edit: 6 年 10 个月 前 by Fran.
Please 登录 或 注册一个帐号 to join the conversation.
创建页面时间:0.084秒