我试图延长Kohana_Database_PDO位于 的Kohana \模块\数据库\类\ Kohana的\数据库ErrorException [致命错误]:类“Database_PDO”未找到
要做到这一点,我在PDO制作的文档。在 Kohana的\应用程序\类php文件\数据库
我使用的代码是
<?php defined('SYSPATH') OR die('No direct script access.');
/**
* PDO database connection.
*
* @package Application
* @category Drivers
*/
class Application_Database_PDO extends Kohana_Database_PDO {} // End Database_PDO
我得到的错误:
ErrorException [致命错误]:类 'Database_PDO' 未找到 MODPATH \数据库\类\ Kohana的\ database.php中[78]
// Set the driver class name
$driver = 'Database_'.ucfirst($config['type']);
// Create the database connection instance
$driver = new $driver($name, $config); <- highlighted line
// Store the database instance
Database::$instances[$name] = $driver;
}
- {PHP内部呼叫}»Kohana_Core: :shutdown_handler()
感谢您的帮助:)
你使用什么Kohana版本? – 2013-03-22 07:35:35