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

How to ignore where clause if condition is empty in Yii2 – Mysql

I know this same question is already asked before. But I have tried the solution but it's not working for me. $comp_ids = AllowArea::find() ->select(['comp_code']) ->where(['user_id' => Yii::$app->user->id]) ->column(); $ref = (new yiidbQuery()) ->select([ 'ProductCode', 'ProductNameFull', 'ProductSpec', 'ProductGroup', 'CompanyCode', 'CompanyName'…

VIEW QUESTION

How to enable virtualhost in xampp – Apache

I am configure virtualhost on Xampp so that I can run an advanced Yii2 project (with front and backend application), I have followed this instruction and my httpd-vhosts.conf looks like this <VirtualHost *:8081> ServerName winnersprimary.ac.tz DocumentRoot 'c:xampphtdocswinnersprimaryfrontendweb' <Directory 'c:xampphtdocswinnersprimaryfrontendweb'> #…

VIEW QUESTION

Composer Yii2 Bower: The file or directory to be published does not exist: C:myProjectvendorbower/jquery/dist

Error message: PHP User Error – yiibaseErrorException Exception 'yiibaseInvalidArgumentException' with message 'The file or directory to be published does not exist: C:myProjectvendorbower/jquery/dist' in C:myProjectvendoryiisoftyii2webAssetManager.php:456 Problem: yii2 asset manager is looking for the vendor folder bower which does not exist and…

VIEW QUESTION
Back To Top
Search