最新赞助活动温馨提示:自愿赞助服务器费用,学生和没有工作的整站资源免费下载!
头像

Parse error: syntax error, unexpected T_CLASS,该怎么处理

来源:http://erdangjiade.com/topic/79942.html 你好,世界。 2017-10-04 21:03浏览(3)

Parse error: syntax error, unexpected T_CLASS
最近学php,提示第三行有错误,帮忙看下是哪里错了?谢谢
“Parse error: syntax error, unexpected T_CLASS ” in test.php on line 3
<?php
require_once("razorflow_phplibcoreStandaloneDashboard.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();

------解决方案--------------------
第二行 require_once("razorflow_phplibcoreStandaloneDashboard.php") 后面少了行结束符 ;(分号)

评论0
头像

友情提示:垃圾评论一律封号 加我微信:826096331拉你进VIP群学习群

1 2