这是如果有错误的部分。
致命错误:不在时使用 $this
对象上下文在
/pb_events.php
6号线
第 6 行是:$jpp = $this->vars->data["jpp"];
function DoEvents($this) {
global $_CONF, $_PAGE, $_TSM , $base;
$jpp = $this->vars->data["jpp"];
$cache["departments"] = $this->db->QFetchRowArray("SELECT * FROM {$this->tables[job_departments]}");
$cache["locations"] = $this->db->QFetchRowArray("SELECT * FROM {$this->tables[job_location]}");
$cache["names"] = $this->db->QFetchRowArray("SELECT * FROM {$this->tables[job_names]}");
$cache["categories"] = $this->db->QFetchRowArray("SELECT * FROM {$this->tables[job_categories]}");
多谢!欣赏!
$this仅在方法中有意义,在函数中无效
还行吧
class Foo {
function bar() {
$this->...
这不是
function some() {
$this->
// 编辑:没有注意到他传递“$this”作为参数
建议:只需将“$this”替换为“$somethingElse”
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)