[英]PHP syntax error, unexpected '['
I never had this happen before, but here we go: 我从来没有遇到过这种情况,但是我们走了:
Any ideas? 有任何想法吗?
It looks as if the comment is NOT working... 看起来好像评论不起作用......
Using []
as arrays like that only works with PHP 5.4 and up. 使用
[]
作为数组仅适用于PHP 5.4及更高版本。
See PHP: Arrays
请参阅PHP:数组
You'll have to use old array syntax for PHP 5.3. 你将不得不使用PHP 5.3的旧数组语法。
This will work: 这将有效:
Route::get('/', array('as' => 'default.index', 'uses' => 'DefaultController@index'));
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.