Jump to content

displayAdminProductsExtra: call controller


gytske

Recommended Posts

Hello,

 

basically my module uses 

hookDisplayAdminProductsExtra()

Currently it is a functions that manages eveything within itself -> grabs data, prepares form, returns it.

 

But now I have written an ObjectModel for the data that this module handles. What would the best way to "hook it up". I would like to keep most code for this tab somewhere in a controller, which can prepare the fields and save the. This contrller ofc would be linked with the model.

 

What is the way to call the controller to return the form? Or is this agaisnt best practices?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...