这家伙有点懒,还没写个性签名!
真的难
。。。。来自圆其说,submit没放在form中
已解决,是命名空间我大小写了
看报错第一行 好像是因为 没有把 users和comment 模块写进配置components
是在web.php里面加入么? 加了但是出现了,The configuration for the "comment" component must contain a "class" element.
The configuration for the "comment" component must contain a "class" element.
你是不是开启了URL美化? 如果是,那你就不应该用index.php?r=comment这样访问了,应该用:http://localhost/basic/web/comment 来访问
index.php?r=comment
http://localhost/basic/web/comment
但那我用之前有个news的控制器,用http://localhost/basic/web/index.php?r=news是可以访问到的
http://localhost/basic/web/index.php?r=news