0
在Silverstripe 3.4我得到一個錯誤Silverstripe 3.4定義和公共靜態
'Parse error: syntax error, unexpected '.', expecting ',' or ';' in /Applications/MAMP/htdocs/Silverstripe/myModule/code/Page.php on line 10'
_config.php:
define('THIS_MODULE_DIR', basename(dirname(__FILE__)));
page.php文件:
public static $icon = THIS_MODULE_DIR.'/img/contact-file.gif'; // line 10
請解釋爲什麼這個錯誤發生/我做錯了什麼。
嗨!使用PHP 5.6的同樣的錯誤。和7.0;第二個建議沒有成功。我必須使用我的文件夾/ ...路徑。 –