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:
@@ -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());
|
||||
|
||||
|
@@ -403,6 +403,11 @@ cli: true
|
||||
# Set to true to enable the Flextype Application
|
||||
app: true
|
||||
|
||||
# View
|
||||
view:
|
||||
directory: 'views'
|
||||
extension: 'php'
|
||||
|
||||
# Slugify
|
||||
slugify:
|
||||
|
||||
|
Reference in New Issue
Block a user