Skip to content

vkabachenko/yii2-js

Repository files navigation

JavaScript in Yii2

Contents

Script file in layout

Script file in view

Inner script in view

Simple js widget in view

Simple loading html content using ajax

Passing data from server in json format

Simple pjax with forms and links

CRUD grid with ajax and modal windows

Installation

  1. Install the application via composer using the following commands:

    composer global require "fxp/composer-asset-plugin:*"

    composer create-project --prefer-dist --stability=dev vkabachenko/yii2-js yii2-js

    cd yii2-js

  2. Create a new database and adjust the components['db'] configuration in config/web.php file.

  3. Apply migrations with console command yii migrate. This will create tables needed for the application to work.

  4. Now you should be able to access the application through the following URL:

    http://localhost/yii2-js/web/

About

JavaScript in Yii2. HowTo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published