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

Perform on clicking Save Button

6 år 10 måneder siden #1721 af WebBonus AG
Perform on clicking Save Button blev oprettet af 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

Venligst Log på eller Opret en konto for at deltage i samtalen

6 år 10 måneder siden - 6 år 10 måneder siden #1722 af Fran
Besvaret af Fran på emne 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.
Sidste redigering: 6 år 10 måneder siden ved Fran.

Venligst Log på eller Opret en konto for at deltage i samtalen

Tid til at oprette siden: 0.087 sekunder
Leveret af Kunena Forum

Vi we benytter cookies, så vi bedst muligt kan levere vores services. For mere information, se vores