SHARE
TWEET

Untitled

a guest Feb 18th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. require __DIR__ . '/../vendor/autoload.php';
  4. require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';
  5.  
  6. // Вот тут стучимся в сессию
  7. $config = require __DIR__ . '/../config/web.php';
  8. session_start();
  9. $config['language'] = isset($_SESSION['language']) ? $_SESSION['language'] : 'ru-RU';
  10.  
  11. (new yiiwebApplication($config))->run();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top