× Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues

Perform on clicking Save Button

6 năm 8 tháng trước #1721 bởi 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

Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.

6 năm 8 tháng trước - 6 năm 8 tháng trước #1722 bởi 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:
public function save($data)
{
    /* Your code here */
    return parent::save($data);
}

Regards.
Last edit: 6 năm 8 tháng trước by Fran.

Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.

Thời gian tải trang: 0.092 giây
Powered by Kunena Forum

We use cookies so that you can place orders and we can provide a better service. You can control the use of cookies at the individual browser level. If you reject cookies, you may still use our website, but your ability to use some features or areas of our website may be limited.