Init du projet
This commit is contained in:
70
module/Application/config/module.config.php
Normal file
70
module/Application/config/module.config.php
Normal file
@ -0,0 +1,70 @@
|
||||
<?php
|
||||
/**
|
||||
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
|
||||
* @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
|
||||
namespace Application;
|
||||
|
||||
use Zend\Router\Http\Literal;
|
||||
use Zend\Router\Http\Segment;
|
||||
use Zend\ServiceManager\Factory\InvokableFactory;
|
||||
|
||||
return [
|
||||
'router' => [
|
||||
'routes' => [
|
||||
'home' => [
|
||||
'type' => Literal::class,
|
||||
'options' => [
|
||||
'route' => '/',
|
||||
'defaults' => [
|
||||
'controller' => Controller\IndexController::class,
|
||||
'action' => 'index',
|
||||
],
|
||||
],
|
||||
],
|
||||
'contact' => [
|
||||
'type' => Literal::class,
|
||||
'options' => [
|
||||
'route' => '/contact',
|
||||
'defaults' => [
|
||||
'controller' => Controller\IndexController::class,
|
||||
'action' => 'contact',
|
||||
],
|
||||
],
|
||||
],
|
||||
'application' => [
|
||||
'type' => Segment::class,
|
||||
'options' => [
|
||||
'route' => '/application[/:action]',
|
||||
'defaults' => [
|
||||
'controller' => Controller\IndexController::class,
|
||||
'action' => 'index',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'controllers' => [
|
||||
'factories' => [
|
||||
Controller\IndexController::class => InvokableFactory::class,
|
||||
],
|
||||
],
|
||||
'view_manager' => [
|
||||
'display_not_found_reason' => true,
|
||||
'display_exceptions' => true,
|
||||
'doctype' => 'HTML5',
|
||||
'not_found_template' => 'error/404',
|
||||
'exception_template' => 'error/index',
|
||||
'template_map' => [
|
||||
'layout/layout' => __DIR__ . '/../view/layout/layout.tpl',
|
||||
'application/index/index' => __DIR__ . '/../view/application/index/index.tpl',
|
||||
'error/404' => __DIR__ . '/../view/error/404.tpl',
|
||||
'error/index' => __DIR__ . '/../view/error/index.tpl',
|
||||
],
|
||||
'template_path_stack' => [
|
||||
__DIR__ . '/../view',
|
||||
],
|
||||
],
|
||||
];
|
Reference in New Issue
Block a user