当前位置:Gxlcms > PHP教程 > razorflow使用过程中提示RFComponent不存在

razorflow使用过程中提示RFComponent不存在

时间:2021-07-01 10:21:17 帮助过:27人阅读

使用razorflow时提示如下错误
Fatal error: Class 'RFComponent' not found in TableComponent.php on line 9
TableComponent是razorflow里自带的文件,怎么也报错了?有人遇到过吗
如下会调用TableComponent.php
setCaption("Regional Sales");        $table->setDimensions (4, 4);        $table->setRowsPerPage (8);        $table->addColumn('zone', "Zone");        $table->addColumn('name', "Store Name");        $table->addColumn('sale', "Sales Amount", array(          "dataType" => "number",          "numberPrefix" => "$ ",          "textAlign" => "center"        ));        $data = array(          array("zone" => "North", "name" => "Northern Stores", "sale" => 4000),          array("zone" => "South", "name" => "Southern Stores", "sale" => 4500)        );        $table->addMultipleRows($data);        $this->addComponent ($table);    }}$db = new SampleDashboard();$db->renderStandalone();


回复讨论(解决方案)

在线等,在线等

找到解决方法了,不用requreonce()里面的类库,所有的都会引入了

人气教程排行