Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 找不到Zend/Db类,我需要在zendpdf中显示我的相册表数据_Php_Zend Framework_Pdf - Fatal编程技术网

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

Php 找不到Zend/Db类,我需要在zendpdf中显示我的相册表数据,php,zend-framework,pdf,Php,Zend Framework,Pdf,这是正确的类名 $db = Zend_Db::factory('Pdo_Mysql', array( 'host' => '127.0.0.1', 'username' => 'webuser', 'password' => 'xxxxxxxx', 'dbname' => 'test' )); 检查您的include路径,我想类名是错误的使用zend/db;我也包括,但它显示错误???任何示例只需检查zend library

这是正确的类名

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

检查您的include路径,我想类名是错误的使用zend/db;我也包括,但它显示错误???任何示例只需检查zend library db.php文件中的类名即可
$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