En mi bootstrap tengo esto:
Código PHP:
public function _initAutoloaderNamespaces()
{
require_once APPLICATION_PATH . '/../library/Doctrine/Common/ClassLoader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
$fmmAutoloader = new DoctrineCommonClassLoader('Bisna');
$autoloader->pushAutoloader(array($fmmAutoloader, 'loadClass'), 'Bisna');
}
protected function _initNavigations()
{
$this->bootstrap('layout');
$layout = $this->getResource('layout');
$view = $layout->getView();
$this->em = Zend_Registry::get('doctrine')->getEntityManager();
$repo = $this->em->getRepository('Application\Entity\Menu');
$arrayTree = $repo->childrenHierarchy();
$array = new ApplicationHelpersHelp();
$arr = $array->re($arrayTree);
$container = new Zend_Navigation($config);
}
Fatal error: Uncaught exception 'Zend_Exception' with message 'No entry is registered for key 'doctrine'' in C:\xampp\php\library\Zend\Registry.php:147
probé el Zend_registry con otra variable, pero al parecer no se da el set del Doctrine.
Por favor una yuda.