AllToolKits.com Posted May 27, 2015 Report Posted May 27, 2015 Hi, I need to add an extra field in Module Options of Universal Module in Blesta.(below the Name field). But it doesn't save the value when add a new field in add_row.php file (view part). How to add a new field in Module Options of Universal Module for Blesta. I can't see how it's creating table for it, there is no install function. usually i had seen code like this to create a table. $this->Record-> setField("set_id", array('type' => "int", 'size' => 10, 'unsigned' => true, 'auto_increment' => true))-> setField("set_key", array('type' => "varchar", 'size' => 256))-> setField("set_value", array('type' => "varchar", 'size' => 256))-> setField("set_status", array('type' => "int", 'size' => 1))-> setKey(array("set_id"), "primary")-> create("synergy_settings", true); But there is no such code in Universal Module, how it's creating a table? Quote
serge Posted May 27, 2015 Report Posted May 27, 2015 have you check these tables: - service_fields - service_options - services Quote
Tyson Posted May 27, 2015 Report Posted May 27, 2015 Modules don't typically create tables. A plugin would be better suited for that. The Universal Module makes use of the existing schema to add products as module rows. If you're trying to mimic its behavior, you should check out how the Universal Module formats package and service fields from a product into module row meta data. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.