FOOKLOOK
啥错呢?
CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='. The SQL statement executed was: SELECT * FROM
tbl_user
t
WHERE username=:username LIMIT 1- FOOKLOOK 回复了话题 自定义model文件目录位子
- -!论坛不能回复- -!楼上“mapwa”给了我很大的提示,我在后面的实践中将我所要引入的models文件通过
Yii::setPathOfAlias()
设定为路径别名,然后在主配置文件main.php中通过import引入就解决了这个问题。谢谢楼上
- FOOKLOOK 发布了话题自定义model文件目录位子