I created a link something linke this
<a href="{$url}" id="submit-form-ajax" class="cm-ajax" data-ca-target-id="main_div_ajax"></a>
From the controller I sent this
Tygh::$app['view']->assign('data', $data);
if (defined('AJAX_REQUEST')) {
Tygh::$app['ajax']->assign('success_rate', json_encode($success_rate));
}
The $data variable is getting assigned perfectly in main_div_ajax, but I want to access that data sent through Tygh::$app[‘ajax’] to reload the chart but not able to access the data from there…
Please suggest what to do, what is the right approch for it?