我在使用findbyid获取共享主机上的页面的唯一URL时遇到此问题。我的问题是在试图通过该项目的ID号来访问共享主机(我不明白在localhost这个问题)的独特的网页,我不断收到以下错误:未在控制器中定义的操作cakephp
Error: The action item is not defined in controller ProductsController
Error: Create ProductsController::item() in file: app/Controller/ProductsController.php.
但是项目被定义在ProductsController类:
你可以在这个网址看到了问题:http://entourmag.com/hava/products/item/39
它通过WAMP工作在本地主机,所以我不知道是什么问题。
在此先感谢
是你实际上位指示名为'ProductsController'(复数和大小写混合)?该文件是'ProductsController.php'? – arilia