Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在控制器中创建添加函数并查看 add.ctp 时,我使用的是 cakephp 2.1
我收到此错误:
解析错误:语法错误,意外的 T_OBJECT_OPERATOR,期待 ',' 或 ';' 在第 5 行的 C:\wamp\www\rohitchoudhary\caketoodoo\app\View\tasks\add.ctp
请帮我
这不是一个蛋糕,而是一个 php 问题。甚至没有。
只要确保你使用了一个不错的 PHP IDE,它会产生解析错误。然后你会发现你可能在某处放置了一个无效的字符。无论哪种方式,您都应该能够自己调试这样的解析错误。
此类错误消息的描述性总是足以让您自己完成。