//IndexAction.class.php下的
public function index(){
//从model类中获取数据
$m=new Model('User');
$arr=$m->select();
var_dump($arr);
}
//config.php下的
return array(
/*
配置数据库
*/
'DB_HOST' => 'localhost',
'DB_TYPE' => 'mysql',
'DB_USER' => 'root',
'DB_PWD' => 'root',
'DB_NAME' => 'thinkphp',
'DB_PREFIX' => 'tp_',
);
就是这样了,php页面上出现":( 页面错误!请稍后再试~"
怎么解决啊?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...