首页 >后端开发 >php教程 >razorflow使用过程中提示RFComponent不存在

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

WBOY
WBOY原创
2016-06-23 13:51:411013浏览

使用razorflow时提示如下错误
Fatal error: Class 'RFComponent' not found in TableComponent.php on line 9
TableComponent是razorflow里自带的文件,怎么也报错了?有人遇到过吗
如下会调用TableComponent.php

<?phprequire_once("razorflow_php\lib\core\StandaloneDashboard.php");require_once("razorflow_php\lib\components\TableComponent.php");class SampleDashboard extends StandaloneDashboard {    public function buildDashboard () {        $table = new TableComponent('table1');        $table->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()里面的类库,所有的都会引入了

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn