Hola compadres que tal,
Bueno, sucéde que estube haciendo el album con el fin de aprender, que viene en este tutorial basado en la beta 5 de zend framework 2:
http://akrabat.com/wp-content/upload...ramework-2.pdf
Iva bien hasta que llego la hora de probar el indexAction de AlbumController. Pues me aparece el siguiente error al ejecutarlo en el navegador:
Cita: Message:
Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for Album\Model\AlbumTable
He revisado una y otra vez cada paso del tutorial y no veo nada diferente al tuto.
Estoy en el apartado de "Listing Albums" pag. 15 donde dice "If you open
http://zf2-tutorial.localhost/album you should see this:", pero en vez de aparecer el listado de los albums me sale ese error.
Espero que puedan ayudarme, gracias!
El texto completo que me devuelve la página es:
Código :
Ver originalAn error occurred
An error occurred during execution; please try again later.
Additional information:
Zend\ServiceManager\Exception\ServiceNotFoundException
File:
C:\wamp\www\zf2-album\vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php:400
Message:
Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for Album\Model\AlbumTable
Stack trace:
#0 C:\wamp\www\zf2-album\module\Album\src\Album\Controller\AlbumController.php(16): Zend\ServiceManager\ServiceManager->get('Album\Model\Alb...')
#1 C:\wamp\www\zf2-album\module\Album\src\Album\Controller\AlbumController.php(25): Album\Controller\AlbumController->getAlbumTable()
#2 C:\wamp\www\zf2-album\vendor\zendframework\zendframework\library\Zend\Mvc\Controller\AbstractActionController.php(137): Album\Controller\AlbumController->indexAction()
#3 [internal function]: Zend\Mvc\Controller\AbstractActionController->execute(Object(Zend\Mvc\MvcEvent))
#4 C:\wamp\www\zf2-album\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(453): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#5 C:\wamp\www\zf2-album\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(193): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#6 C:\wamp\www\zf2-album\vendor\zendframework\zendframework\library\Zend\Mvc\Controller\AbstractActionController.php(104): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#7 C:\wamp\www\zf2-album\vendor\zendframework\zendframework\library\Zend\Mvc\DispatchListener.php(139): Zend\Mvc\Controller\AbstractActionController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#8 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#9 C:\wamp\www\zf2-album\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(453): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#10 C:\wamp\www\zf2-album\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(193): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#11 C:\wamp\www\zf2-album\vendor\zendframework\zendframework\library\Zend\Mvc\Application.php(305): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#12 C:\wamp\www\zf2-album\public\index.php(12): Zend\Mvc\Application->run()
#13 {main}