繁体   English   中英

注意:未定义的变量:此变量在C:\\ dev \\ workspaces \\ adxweb \\ library \\ Adx \\ Datagrid \\ class.eyedatagrid.inc.php中的第885行

[英]Notice: Undefined variable: this in C:\dev\workspaces\adxweb\library\Adx\Datagrid\class.eyedatagrid.inc.php on line 885

嗨,

当我尝试使用eyedatagrid时,出现以下错误消息,并且未显示datagrid,不知道为什么我得到此错误消息,thanx

注意:未定义的变量:在行885的Datagrid \\ class.eyedatagrid.inc.php中

885行拥有此----

 if ($this)
    {
        $page = $this->page;
        $order = (($this->order) ? implode(':', $this->order) : '');
        $filter = (($this->filter) ? implode(':', $this->filter) : '');
    }

您正在静态上下文中调用该函数(正如我刚刚从您未显示的代码中得出的那样)。

EyeDataGrid::printJavascript()

这就是为什么$this不存在的原因。

if ($this)不想通知, if ($this)更改为if (isset($this))或禁用调试模式。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM