Home > Backend Development > PHP Tutorial > razorflow使用过程中提示RFComponent不存在

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

WBOY
Release: 2016-06-23 13:51:41
Original
1034 people have browsed it

使用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();
Copy after login


回复讨论(解决方案)

在线等,在线等

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template