Jump to content

Recommended Posts

Posted
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?

Posted

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...