문제

I tried to integrate Doctrine 1.2 in Zend 2 by myself;

but in the FamilleController.php i have this error :

Fatal error: Class 'Famille\Controller\Doctrine_Core' not found in 
C:\server\www\test1\module\Famille\src\Famille\Controller\FamilleController.php
on line 21

Doctrine_Core is not found !!

how to add Doctrine_ to namespaces of mysite.

도움이 되었습니까?

해결책

You have to specify where Doctrine_Core is located. The controller looks for it in Famille\Controller. Just add use to the top of the controller file:

use Doctrine_Core

or use a backslash:

\Doctrine_Core
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top