×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Perform on clicking Save Button
WebBonus AG
Nouveau membre
Posts: 1
il y a 6 ans 10 mois #1721
par WebBonus AG
Perform on clicking Save Button a été créé par 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
Connexion ou Créer un compte pour participer à la conversation.
Fran
Nouveau membre
Posts: 5
il y a 6 ans 10 mois - il y a 6 ans 10 mois #1722
par Fran
Réponse de Fran sur le sujet 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.
Dernière édition: il y a 6 ans 10 mois par Fran.
Connexion ou Créer un compte pour participer à la conversation.
Temps de génération de la page : 0.050 secondes