Changes
Title
unchanged
AngularJS Frontend:Connecting it with a Yii Backend REST API.Gallery Manager Demo Application.
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
Angular, AngularJS, REST, AJAX, Gallery
Content
changed
[...]
This will make your `config.php` functional both in local development and production environment.
* In`/index.php` configure your local and/or production **framework paths**.
* In`config/main.php` configure your **database info**.Point to the database you created earlier.
* In`config/main.php`,in params array fill in the **RESTusername** and **RESTpassword** fields.They are used for basic REST authentication.
**Note**:These credentials are sent from the client with custom headers,so your server must allow this.
* Create an `uploads\images\thumbnails` folder structure in project webroot.You can change the names in `ng-yii\src\scripts\config\constants.js`,and `protected\models\Image.php.`
### Frontend[...]
* [spin.js](http://fgnass.github.io/spin.js/)
* [Select2](http://ivaynberg.github.io/select2/)