Skip to content
Yii 2.0 Basic Application Template
PHP CSS Shell JavaScript Batchfile Vue
Branch: master
Clone or download
Pull request Compare This branch is 9 commits ahead, 3 commits behind yiisoft:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
assets
commands
config
controllers
mail/layouts
models
runtime
src
tests
vagrant
views
web
widgets
.bowerrc
.gitattributes
.gitignore
LICENSE.md
README.md
Vagrantfile
composer.json
composer.lock
package-lock.json
package.json
requirements.php
webpack.config.js
yii
yii.bat

README.md

Yii 2Vue Basic Project Template


Yii 2/Vue Basic Project Template represents example of simple application that runs vue app inside yii2.

DIRECTORY STRUCTURE

  assets/             contains assets definition
  commands/           contains console commands (controllers)
  config/             contains application configurations
  controllers/        contains Web controller classes
  mail/               contains view files for e-mails
  src/                contains entry script and Vue code
  models/             contains model classes
  runtime/            contains files generated during runtime
  tests/              contains various tests for the basic application
  vagrant/            contains provision script and other machine configuration
  vendor/             contains dependent 3rd-party packages
  views/              contains view files for the Web application
  web/                contains the entry script and Web resources

INSTALLATION

Set it up via Vagrant

Navigate to the root app directory and run:

vagrant up

Please notice provision.sh script inside vagrant folder. Everything that is needed for appropriate running simple Vue app inside existing Yii2 app is configured here. No additional steps needed, just visit url above.

http://yii2-vue-basic.local/
You can’t perform that action at this time.