0
我想我的名字控制器「新」在笨,但出現以下錯誤我該如何命名我的控制器「新」在笨
Parse error: syntax error, unexpected T_NEW, expecting T_STRING in
C:\site\application\controllers\new.php on line 3
(雖然新似乎並沒有按照預約給CI用戶指南 - >http://ellislab.com/codeigniter/user-guide/general/reserved_names.html)
任何解決方法,將不勝感激。 TX!
這不是一個保留的名字笨,但*是*一個[PHP關鍵字(http://php.net/manual/en/reserved.keywords.php)。你不能打電話給任何事情。 – Cairnarvon
是否有任何解決方法? –
除非您考慮將其命名爲其他方法才能解決此問題。 – Cairnarvon