Пишет что $.pjax is undefined
Код: Выделить всё
<?php $this->registerJs(
'$("document").ready(function(){
$("#contact-form").on("submit",function(e) {
jQuery.ajax({
url: "'. Url::to(['movie/create']) .'",
type: "POST",
dataType: "json",
data: $(this).serialize(),
success: function(response) {
$.pjax.reload({container:"grid-container"});
console.log(response);
},
error: function(response) {
console.log(response);
}
});
e.preventDefault();
return false;
});
});'
); ?>