Home  >  Article  >  Backend Development  >  关于discuz3.2自定义数据表字段的问题

关于discuz3.2自定义数据表字段的问题

WBOY
WBOYOriginal
2016-06-23 13:42:30815browse

经过多次试验,不行。

封装类文件中:model_forum_thread中直接写值,如$about=>'123'之类,是 可以输入的


但是在model_forum_thread中使用$about=>$this->$param['about'] ,
在post_thread.php中增加值
$params['about'] ="45845845845";
    $return = $modthread->newthread($params); //插入数据表

结果获取不了。

这个问题搞了两天,没有头绪,求问高手给出一个示例

从post.htm获取新增表单值到插入数据表中的示例。


回复讨论(解决方案)

何必再开一帖呢...

还是在model_forum_thread.php
里面有个 _init_parameters 函数
在$varname数组中添加你要插入的字段

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn