1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-07 21:56:33 +02:00

feat(flextype): add view settings

This commit is contained in:
Awilum
2022-05-25 10:59:57 +03:00
parent b355b96fc3
commit d03bbd842c
2 changed files with 10 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ namespace Flextype;
use Glowy\Csrf\Csrf;
use Glowy\Session\Session;
use Glowy\View\View;
use Cocur\Slugify\Slugify;
use DateTimeZone;
use Flextype\Entries\Entries;
@@ -367,6 +368,10 @@ if (in_array(registry()->get('flextype.settings.timezone'), DateTimeZone::listId
date_default_timezone_set(registry()->get('flextype.settings.timezone'));
}
// Set View
View::setDirectory(PATH['project'] . '/' . registry()->get('flextype.settings.view.directory'));
View::setExtension(registry()->get('flextype.settings.view.extension'));
// Add Plugins Service
container()->set('plugins', new Plugins());

View File

@@ -403,6 +403,11 @@ cli: true
# Set to true to enable the Flextype Application
app: true
# View
view:
directory: 'views'
extension: 'php'
# Slugify
slugify: