我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Yii / Gii:必须从CModel扩展

When I try to generate a FORM from GII the following error arise :

'application.models.Driectory' must extend from CModel.

although the model :

class Directory extends CModel
{
  ..
}

Update

When I rename the model everything work !

Are you sure you didn't mean Directory? Directory might be a reserved word in PHP?

近期文章

  • 用于计算code128的PHP脚本
  • Magento中的第二个数据库连接
  • 监控页面刷新选项
  • 混合内容谷歌Chrome PHP
  • &作为PHP中的算术运算符[重复]
  • SEOstats在服务器上给出错误
  • 使用php在数组中查找关键字?
  • PHP exec()无法在AppServ上运行
  • 检查用户设备的GPS是否已打开
  • Laravel用户::创建缺失数据
  • PHP非法字符串偏移错误
  • 将URL传递给Laravel中的视图
  • 使用PHP将xml插入MySql
  • 比较2个数组PHP的值
  • listview根据关键字滚动指定位置
  • 注销不会重定向 - Symfony2
  • 使用带有ajax的simple_html_dom [重复]
  • PHP - 随机循环行为问题
  • 从服务器获取刷新数据
  • PHP&do / while循环内存泄漏

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华