Yii2 Framework

Yii2 Case Study (1) : Angular JS

This is an example how to combine Yii2 with AngularJS. We have one table, game. 1. Table Preparation Table game : Create model Game.php using Gii, put it in common\models folder.

2. Create GameController.php, index.php, app.js and Use AngularJS 1.6 create frontend/controllers/GameController.php

create frontend/views/game/index.php Use AngularJS 1.6, and put https://ajax.googleapis.com/ajax/libs/angularjs/1.6.7/angular.min.js inside this file.

Read more about Yii2 Case Study (1) : Angular JS[…]