日期:2014-05-17 浏览次数:20467 次
<?php
class IndexAction extends Action
{
public function index() {
try{
$Test = new Model('em');//这里出错,改成think_em也错。
//...
}catch (Exception $e){
dump($e);
}
}
}
?>
<?php
return array(
//'配置项'=>'配置值'
'DB_TYPE'=>'mysql',
'DB_HOST'=>'localhost',
'DB_NAME'=>'test',
'DB_USER'=>'root',
'DB_PWD'=>'welcome',
'DB_PORT'=>'3306',
'DB_PREFIX'=>'think_',
'APP_DEBUG'=>true,
);
?>