Using the control panel, it is also possible to add a new table to the interface. This is important when you construct a new feature using a new table on the system. In the following example, we have modified the configuration file located at /var/www/opensips-cp/config/tools/system/tviewer/local.inc.php
.
This file was modified to show the table called version
. The version
table checks the schema of the database against the module's version. We used this table just as an example. The configuration file is shown here. I have removed some comments to reduce the size and the lines effectively changed are highlighted.
<?php //this is a very important parameter $module_id = "tviewer"; $custom_config[$module_id] = array (); // a custom global name for the tool $custom_config[$module_id]['custom_name'] = "TViewer"; /* config for each submenu item */ $custom_config[$module_id][0]['custom_table'] = "version"; $custom_config[$module_id][0]['custom_table_primary_key'] =...