skip to Main Content

Jquery – Yii2 unable to view column chart using highcharts

I am trying to plot a chart via highchart in yii2. I have already installed it and set it. Below is my code in my index.php view <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script> function loadChartData() { $.ajax({ url: '$url_chart', method: 'GET', dataType:…

VIEW QUESTION

Php – Add subtitle in kartik Select2 yii2

I have a db table with fields like this posts table 'id' 'group_id' 'name' I display this table as a list in kartik Select2 widget $form->field($model, 'post') ->widget( kartikselect2Select2::className(), [ 'data' => ArrayHelper::map(Post::find()->all(), 'id', 'name'), 'options' => [ 'placeholder' =>…

VIEW QUESTION

use alias in joinWith yii2 – PHP

I'm trying to connect a relation table, and and get the max value $query->joinWith('hotelPrices') ->andWhere([HotelPrice::tableName() . '.price' => $form->prices]) ->max(HotelPrice::tableName() . '.price'); but i get this error SQLSTATE[42000]: Syntax error or access violation: 1066 Not unique table/alias: 'hotel_price' how to…

VIEW QUESTION
Back To Top
Search