I need to load a page dynamically via something like Ajax. How does Yii 2 handle this? Basically I just want to click a button and have the contents of another URL appear in a div on the same page. Very basic stuff, but I’m wondering if Yii has this built in somehow.
You want "Basically I just want to click a button and have the contents of another URL appear in a div on the same page"
Just look example http://ksetrin.com/example/pjax/pjax-example-3 (it’s original link, because google try translate the code). You may click buttons and you see how change content in example block.