找不到类Zend / Db,我需要在zendpdf中显示我的相册表数据

时间:2013-10-05 10:56:51

标签: php zend-framework pdf

$db = Db::factory('PDO_MYSQL', $params);
$stmt = $db->query('SELECT Name, Code, Region FROM album LIMIT 0, 150');

1 个答案:

答案 0 :(得分:0)

$db = Zend_Db::factory('Pdo_Mysql', array(
    'host'     => '127.0.0.1',
    'username' => 'webuser',
    'password' => 'xxxxxxxx',
    'dbname'   => 'test'
));

这是正确的班级名称

Db.php is the file name but the class is Zend_Db