cikcak Posted June 10, 2015 Share Posted June 10, 2015 Hey, I have created additional Controller - AdminPlistController. After I add a new record with - ADD NEW ( http://prntscr.com/7f9s37 ) I would like to insert custom data to other db table. Can I do it by one class? Plist controller has assigned class - MPlist where I selected table - Plist. Here I write data in Plist table after Add new submit. Im using as default ObjectModel:: definition. Is it possible to insert data to different data? For example after submit new record it insert data to Plist table and Plist_customers table ? If no I could do it in my AdminPlistController after submit data but which function use? postProccess() ? Thanks for any info, sorry for bad english skills. Link to comment Share on other sites More sharing options...
rytiz2873 Posted June 10, 2015 Share Posted June 10, 2015 yes, you can. In class file you should rewrite add() function and in this function you can add your data saving code Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now