Parse error: syntax error, unexpected T_CLASS,该怎么处理
程序员文章站
2024-02-14 13:34:34
...
Parse error: syntax error, unexpected T_CLASS
最近学php,提示第三行有错误,帮忙看下是哪里错了?谢谢
“Parse error: syntax error, unexpected T_CLASS ” in test.php on line 3
------解决方案--------------------
第二行 require_once("razorflow_php\lib\core\StandaloneDashboard.php") 后面少了行结束符 ;(分号)
最近学php,提示第三行有错误,帮忙看下是哪里错了?谢谢
“Parse error: syntax error, unexpected T_CLASS ” in test.php on line 3
require_once("razorflow_php\lib\core\StandaloneDashboard.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_php\lib\core\StandaloneDashboard.php") 后面少了行结束符 ;(分号)
相关文章
相关视频
推荐阅读
-
Parse error: syntax error, unexpected T_CLASS,该怎么处理
-
*wsdl error: phpType is struct, but value is not an array *该怎么处理
-
PHP异常Parse error: syntax error, unexpected错误解决方法
-
Parse error: syntax error, unexpected T_CLASS,该怎么处理
-
最后的分了 。Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';是什么意思解决思路
-
PHP错误Parse error: syntax error, unexpected end of file in test.php on line 12解决方法
-
Parse error: syntax error, unexpected 'include' (T_INCLUDE) in D:mywebadd.php解决方案
-
php syntax error, unexpected $end 错误怎么解决
-
*wsdl error: phpType is struct, but value is not an array *该怎么处理
-
You have an error in your SQL syntax,该怎么解决