Question

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.

Was it helpful?

Solution

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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top