Created
January 17, 2012 18:09
-
-
Save shiroyuki/1627894 to your computer and use it in GitHub Desktop.
module.config.php for ICX/ZF2/Blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return array( | |
'routes' => array( | |
'blog-category' => array( | |
'type' => `Zend\Mvc\Router\Http\Literal`, | |
'options' => array( | |
'route' => '/category/index', | |
'defaults' => array( | |
'controller' => 'blog-category', | |
'action' => 'index', | |
), | |
), | |
), | |
), | |
'di' => array( | |
'instance' => array( | |
'alias' => array( | |
'blog-category' => 'Blog\Controller\CategoryController', | |
), | |
'Blog\Controller\CategoryController' => array( | |
'parameters' => array( | |
'categoryTable' => 'Blog\Model\CategoryTable', | |
), | |
), | |
'Blog\ModelCategoryTable' => array( | |
'parameters' => array( | |
'config' => 'Zend\Db\Adapter\Mysqli', | |
), | |
), | |
'Zend\Db\Adapter\Mysqli' => array( | |
'parameters' => array( | |
'config' => array( | |
'host' => 'localhost', | |
'username' => 'root', | |
'password' => '', | |
'dbname' => 'z2', | |
), | |
), | |
), | |
'Zend\View\PhpRenderer' => array( | |
'parameters' => array( | |
'options' => array( | |
'script_paths' => array( | |
'blog' => __DIR__ . '/../views', | |
), | |
), | |
), | |
), | |
), | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment