我对cakephp很新。
我的项目名为“catalog”
我正在使用xampp和cakephp版本2.3.7
我创建了控制器app / Controller / ItemsController.php
class ItemsController extends AppController{
public function index(){
$this->set('color', 'blue');
}}
我创建了View / Items / index.ctp
<?php echo $color ?>
当我尝试在浏览器中访问“catalog /”
时et work fine我有一个起始页: CakePHP 2.5.3的发行说明。 .... ............
但当我试图联系我的控制器时:“目录/项目” 我有错误
Missing Controller
Error: ItemsController could not be found.
Error: Create the class ItemsController below in file: app\Controller\ItemsController.php
<?php
class ItemsController 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 108 → Dispatcher->dispatch(CakeRequest, CakeResponse)
请有人帮助我
答案 0 :(得分:0)
抱歉,我犯了一个错误 我已经创建了两个文件夹 一个用xampp,另一个用netbeans