相关疑难解决方法(0)

什么时候使用自我超过$?

在PHP 5中,使用self和有$this什么区别?

什么时候适合?

php oop scope class

1948
推荐指数
21
解决办法
68万
查看次数

致命错误:在不在对象上下文中时使用$ this

如果有错误,这是部分.

致命错误:在第6行的/pb_events.php中不在对象上下文中时使用$ this

第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]}");
Run Code Online (Sandbox Code Playgroud)

非常感谢!欣赏!

php oop fatal-error

7
推荐指数
3
解决办法
3万
查看次数

标签 统计

oop ×2

php ×2

class ×1

fatal-error ×1

scope ×1