Im setting up this site using the slim 3 framework for routing. When a certain url is requested i want a modal to popup, but not the whole app to re render its current view.
For example, when this below is done i instead want to init the modal.
Route:
$app->get('', function() {
return new SettingsController('settings/index.twig');
});