Logo white

Yarik / artbox-basic

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • artbox-basic
  • backend
  • views
  • site
  • stab.php
  • -Am charts ready
    c39f00f8
    Alexey Boroda authored
    2017-03-28 19:58:54 +0300  
    Browse Code ยป
stab.php 470 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<?php
    use speixoto\amcharts\AmChartAsset;
    use yii\web\View;
    
    /**
     * @var View $this
     */
    
    AmChartAsset::register($this);
    
    $js = <<<JS
  $.ajax({
            url: "site/analytics",
            type: "GET",
            success: function(data) {
                console.log(data);
                $('#stab').replaceWith(data);
            }
        });
JS;
    
    $this->registerJs($js, View::POS_READY);
?>

<div id="stab"></div>