zend framework2 DB

黑旋风A 发布于 2013/07/04 15:26
阅读 584
收藏 0

急需解答,我在ZEND FRAMEWORK2的时候,连接SQLSERVER出现异常,请教高手帮忙!

异常如下:

An error occurred

An error occurred during execution; please try again later.

Additional information:

Zend\Db\Adapter\Exception\RuntimeException

File:
D:\xampp\htdocs\ZendSkeletonApplication\vendor\ZF2\library\Zend\Db\Adapter\Driver\Sqlsrv\Sqlsrv.php:141
Message:
The Sqlsrv extension is required for this adapter but the extension is not loaded
Stack trace:
#0 D:\xampp\htdocs\ZendSkeletonApplication\vendor\ZF2\library\Zend\Db\Adapter\Adapter.php(87): Zend\Db\Adapter\Driver\Sqlsrv\Sqlsrv->checkEnvironment()
#1 D:\xampp\htdocs\ZendSkeletonApplication\module\Application\src\Application\Model\ShowData.php(23): Zend\Db\Adapter\Adapter->__construct(Array)
#2 D:\xampp\htdocs\ZendSkeletonApplication\module\Application\src\Application\Controller\HomeController.php(66): Application\Model\ShowData->__construct()
#3 D:\xampp\htdocs\ZendSkeletonApplication\vendor\ZF2\library\Zend\Mvc\Controller\AbstractActionController.php(83): Application\Controller\HomeController->getValuePageAction()
#4 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#5 D:\xampp\htdocs\ZendSkeletonApplication\vendor\ZF2\library\Zend\EventManager\EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#6 D:\xampp\htdocs\ZendSkeletonApplication\vendor\ZF2\library\Zend\EventManager\EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#7 D:\xampp\htdocs\ZendSkeletonApplication\vendor\ZF2\library\Zend\Mvc\Controller\AbstractController.php(117): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#8 D:\xampp\htdocs\ZendSkeletonApplication\vendor\ZF2\library\Zend\Mvc\DispatchListener.php(114): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#9 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#10 D:\xampp\htdocs\ZendSkeletonApplication\vendor\ZF2\library\Zend\EventManager\EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#11 D:\xampp\htdocs\ZendSkeletonApplication\vendor\ZF2\library\Zend\EventManager\EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#12 D:\xampp\htdocs\ZendSkeletonApplication\vendor\ZF2\library\Zend\Mvc\Application.php(309): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#13 D:\xampp\htdocs\ZendSkeletonApplication\public\index.php(12): Zend\Mvc\Application->run()
#14 {main}

加载中
0
leo108
leo108

The Sqlsrv extension is required for this adapter but the extension is not loaded
不懂英文真可怕


回去干活
回去干活
不懂英文不可怕,不会用翻译软件才可怕.
返回顶部
顶部