蛋糕 PHP 致命错误 (256) [英] Cake PHP Fatal Error (256)

查看:19
本文介绍了蛋糕 PHP 致命错误 (256)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚使用 cake bake 创建了一个应用程序,当我运行它时,我看到屏幕上写着 'Sweet, myApp got bake' 但上面没有样式,在底部我得到以下错误:

I have just created an application using cake bake and when I run it I get the screen that says 'Sweet, myApp got baked' but there are no styling on it and at the bottom I get the following error:

Fatal Error (256): ConnectionManager::getDataSource - Non-existent data source default [COREcakelibsmodelconnection_manager.php, line 102]

我已经配置了我的数据库和用户等.但我不明白发生了什么.

I've configure my database and user etc. But I don't understood what's going on.

有人可以帮忙吗?

推荐答案

您可能输入了 Cake 的烘焙向导的名称.将 app/config/database.php 中的名称替换为$default"因此,

You likely entered a name for Cake's bake wizard. Replace that name in app/config/database.php with "$default" Thus,

var $blog = array(...);

变成

var $default = array(...);

这篇关于蛋糕 PHP 致命错误 (256)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆