Good day! I want to update part of a page, that is what the block using jquery.
$(".del-item").click(function() {
$(".korz-block").load("main.php .korz-block");
});
This code works without мvc files and I am using yii2, can I update in yii2 in layouts in main.php part of the code in this way??? Or how to do it better, or variance
so tried, does not work - Arch.Rowe commented on April 19th 20 at 12:19
Read in the documentation.
Specify the path you can use Url::to() or Url::toRoute
You can also try using Yii::getAsset('@web') and connect the rest of the way.
Do as I wrote in a comment. - Lisette.Zieme commented on April 19th 20 at 12:22
I pointed out, and many variants have tried, it is useless - Arch.Rowe commented on April 19th 20 at 12:25
$rel = Url::to()
Read the documentation on how to use Url::to(); - Lisette.Zieme commented on April 19th 20 at 12:28