diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..0b82aa5 --- /dev/null +++ b/composer.json @@ -0,0 +1,18 @@ +{ + "name": "rsgrinko/delta", + "description": "Delta Framework", + "type": "project", + "license": "MIT", + "autoload": { + "psr-4": { + "Core\\": "core/lib/" + } + }, + "authors": [ + { + "name": "rsgrinko", + "email": "rsgrinko@gmail.com" + } + ], + "require": {} +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..2f9bddb --- /dev/null +++ b/composer.lock @@ -0,0 +1,18 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "76495c532399aad23bb670f0202d18a2", + "packages": [], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [], + "plugin-api-version": "2.3.0" +} diff --git a/core/bootstrap.php b/core/bootstrap.php index dc5e7ac..300a233 100644 --- a/core/bootstrap.php +++ b/core/bootstrap.php @@ -9,6 +9,8 @@ if (session_status() == PHP_SESSION_NONE) { session_start(); } + require_once __DIR__ . '/../vendor/autoload.php'; + ob_start(function($buffer) { try { Template::set('CLEAR_CACHE_LINK_NAME', 'Сброс файлового кэша'); diff --git a/templates/.htaccess b/templates/.htaccess new file mode 100644 index 0000000..c0ae62c --- /dev/null +++ b/templates/.htaccess @@ -0,0 +1 @@ +#test \ No newline at end of file