Preparations
Create a web root directory (usually it’s , htdocs
, public_html
, www
or alike name). Inside add directories
named assets
, , models
and views
.
The structure we’ve just created is similar to the structure used by Yii. You can adjust it as you like but for this
tutorial we’ll stick to Yii convention in order to make it easier to understand.
controllers
is for AngularJs controllers.- is for services which deal with RESTful CRUD API we’re going to build.
Download a library from and extract it to assets
directory like the following:
Download a library from http://angularjs.org/, and extract it into assets
directory like the following:
Web Service Application
Install Yii 2.0 Basic project template as .
It is preferred to use Composer like the following:
Alternatively you can do it manually downloading and extracting archive as described at the same guide page.