Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 784 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 784 Bytes

vk app template written on yii2/backbone

How to setup

  1. Clone;
  2. chmod 0777 runtime; chmod 0777 web/assets;
  3. Create database;
  4. Edit config/db.php - fill in your database settings;
  5. Edit config/params.php - fill in your app_id and app_secret;
  6. Edit config/web.php - fill in urlManager rules;
  7. Create users table by typing in terminal "./yii migrate";

You're done! Go ahead and modify controllers/MainController.php and corresponding views! You can use

\Yii::$app->user->identity->id

to get the id of the current user, as well as these properties:

\Yii:$app->user->identiry->first_name
\Yii:$app->user->identiry->last_name

Автор кода: Цыганков Александр tsygankov.aleksandr@gmail.com