我在 CakePHP 中有一个奇怪的问题。
我使用一个主题,所以我有一个文件夹 Themed/mytheme ,在这种情况下我有Themed/mytheme/webroot/img/
我担心的是,在这张文件图片中,我有几张图片。到目前为止,我所有的图像都显示在 url 中/theme/mytheme/img/myimage.png
。
今天早上我创建了另一个图像,所以我保存在这个文件夹 img 中并且有问题。当我想显示我的图像时,出现以下错误:
missing Controller
Error: ThemeController could not be found.
Error: Create the class below in ThemeController file: app \ Controller \ ThemeController.php
<? php
ThemeController class extends AppController {
}
Notice: If you want to customize this error message, create app \ View \ Errors \ missing_controller.ctp
Stack Trace
APP \ webroot \ index.php line 92 → Dispatcher-> dispatch (CakeRequest, CakeResponse)
我的错误是其余的图像不在同一个文件夹中。
你能告诉我或者它可能来自请吗?
谢谢你。
PS:对不起我的英语。