Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require __DIR__ . '/../vendor/autoload.php';
- require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';
- // Вот тут стучимся в сессию
- $config = require __DIR__ . '/../config/web.php';
- session_start();
- $config['language'] = isset($_SESSION['language']) ? $_SESSION['language'] : 'ru-RU';
- (new yiiwebApplication($config))->run();
Add Comment
Please, Sign In to add comment