在destoon的模塊中新加action時要注意幾點
1.在模塊的my.inc.php中,這個地方一定要給新的action寫進去,不然不會更新post_fields,
if (in_array($action, array('add', 'edit','batch')))
{
$FD = cache_read('fields-' . substr($table, strlen($DT_PRE)) . '.php');
if ($FD) require DT_ROOT . '/include/fields.func.php';
isset($post_fields) or $post_fields = array();
$CP = $MOD['cat_property'];
if ($CP) require DT_ROOT . '/include/property.func.php';
isset($post_ppt) or $post_ppt = array();
}
post_fields是一些下拉選擇類的,post_fields中是在基本信息插入後以itemid爲主鍵進行的更新