杯具啊,编程果然要注意细节啊

resources.db.params.adapter = "pdo_mysql"
resources.db.params.host = "localhost"
resources.db.params.username = "root"
resources.db.params.password = "tenking"
resources.db.params.dbname = "zfbase"
resources.db.params.charset = "utf8"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
resources.view.doctype = "XHTML1_STRICT"

resources.db.adapter = "pdo_mysql"
resources.db.params.host = "localhost"
resources.db.params.username = "root"
resources.db.params.password = "tenking"
resources.db.params.dbname = "zfbase"
resources.db.params.charset = "utf8"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
resources.view.doctype = "XHTML1_STRICT"

主要看上面的配置区别

第一句编程是惯性思维码多了个params,结果这里蛮久才找到原因。。。无语

你可能感兴趣的:(杯具啊,编程果然要注意细节啊)