Moved templates and templates config to Core module

This commit is contained in:
Alejandro Celaya 2016-07-19 18:32:59 +02:00
parent 923abdf4d2
commit 39598d8608
7 changed files with 26 additions and 15 deletions

View file

@ -2,12 +2,6 @@
return [
'templates' => [
'paths' => [
'templates'
],
],
'twig' => [
'cache_dir' => 'data/cache/twig',
'extensions' => [

View file

@ -1,14 +1,8 @@
<?php
return [
'debug' => false,
'debug' => false,
'config_cache_enabled' => true,
'zend-expressive' => [
'error_handler' => [
'template_404' => 'error/404.html.twig',
'template_error' => 'error/error.html.twig',
],
],
];

View file

@ -0,0 +1,11 @@
<?php
return [
'templates' => [
'paths' => [
'module/Core/templates',
],
],
];

View file

@ -0,0 +1,12 @@
<?php
return [
'zend-expressive' => [
'error_handler' => [
'template_404' => 'core/error/404.html.twig',
'template_error' => 'core/error/error.html.twig',
],
],
];

View file

@ -1,4 +1,4 @@
{% extends 'layout/default.html.twig' %}
{% extends 'core/layout/default.html.twig' %}
{% block title %}URL Not Found{% endblock %}

View file

@ -1,4 +1,4 @@
{% extends 'layout/default.html.twig' %}
{% extends 'core/layout/default.html.twig' %}
{% block title %}{{ status }} {{ reason }}{% endblock %}