我从教程中学习并尝试查看我的ItemesController,但我总是收到以下错误: " ItemsController中缺少方法。动作索引未在控制器ItemsController"
中定义我输入了这个网址:localhost / cake_2_5 / Items
ItemesController.php的路径:
/无功/网络/ HTML / cake_2_5 /应用/控制器
<?php
class ItemsController extends AppController
{
public function idex(){
$this->set('color', 'blue');
}
}
?>
我的index.ctp的路径: 的/ var / www / html等/ cake_2_5 /应用/视图/项目
<?php echo $color ?>
CakePHP 2.5.0的发行说明。