Answer the question
In order to leave comments, you need to log in
How to escape slashes in js?
There is a php code that generates a js script:
<?php
$this->registerJs("
$('#ajax-image').on('shown.bs.modal', function () {
$.get('/image-manager/ajax-create?modul_name=\common\models\Portfolio&modul_item_id=".$model->id."',function(data){
неважно
});
});
");?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question