Skip to content

Start your vk iframe app with this boilerplate written on yii2 php framework for serverside and backbone.js for clientside.

License

Notifications You must be signed in to change notification settings

pistonsky/vk-app-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Start your vk iframe app with this boilerplate written on yii2 php framework for serverside and backbone.js for clientside.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages