Revision #9 was created by skworden on May 18, 2015, 4:29:12 PM.
removed comments
Content
[...]
use yii\helpers\Html;
use yii\web\Response;
public function actionGetLocationAddress($id) {
Yii::$app->response->format = Response::FORMAT_JSON; //echo JSON data for Get request to read
//always want to encode user input
echo Locations::find()->where('id = :id', [':id' => $id])->one();
}
```
Since the function is camelCased you should note that it needs to accessed like.
userlocations/get-location-address