$http({method: 'POST', url: 'http://public/rest_api/update', params: {'id': id, 'user': user}}).
then(function success (response) {
$scope.response=response.data;
console.log(user);
});
/**
* @Route("/rest_api/update", methods={"POST"})
*/
public function restApiUpdate(Request $request)
public function getAuthAssignment()
{
return $this->hasMany(AuthAssignment::className(), ['user_id' => 'id']);
}
setInterval(function(){
$.pjax.reload("#select_pjax"); //Reload GridView
$("#select_pjax").on('pjax:success', function () {
$.pjax.reload("#save_pjax");
});
},5000);
setInterval(function(){
$.pjax.reload("#save_pjax"); //Reload GridView
$.pjax.reload("#select_pjax");
},4000);
setInterval(function(){
$.pjax.reload("#select_pjax");
$.pjax.reload("#save_pjax"); //Reload GridView
},4000);
'select' => function($url,$key){
return Html::a('<span class="glyphicon glyphicon-share" style="color:#228B22"></span>',$url, [
'title' => 'Выбрать пункт приема',
'class' => 'select',
'data-target' => 'unload',
'data-id' => $url
]);
}