Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Album;
- use Album\Model\AlbumTable;
- /**
- * Test class for Zend
- */
- class Album
- {
- function getAutoLoaderConfig()
- {
- return array(
- 'Zend\Loader\ClassMapAutoloader' => array(
- __DIR__ . '/autoload_classmap.php',
- ),
- 'Zend/Loader/StandartAutoloader' => array(
- 'namespaces' => array(
- __NAMESPACE__ => __DIR__. '/src/'. __NAMESPACE__,
- ),
- ),
- );
- }
- public function getConfig()
- {
- return include __DIR__ . '/config/module.config.php';
- }
- public function getServiceConfig()
- {
- return array(
- 'factories'=>array(
- 'Album\Model\AlbumTable' => function($m){
- $dbAdapter = $m->get('Zend\Db\Adapter\Adapter');
- $table = new AlbumTable($dbAdapter);
- return $table;
- },
- ),
- );
- }
- }
- ?>
Add Comment
Please, Sign In to add comment