setup for highcharts extension

Hi All,

I am trying to use highcharts in my web application and downloaded the highchart zip file from herehere ,I put the below code in view $this->Widget(‘ext.highcharts.HighchartsWidget’, array(

‘options’ => array(

  'title' => array('text' => 'Fruit Consumption'),


  'xAxis' => array(


     'categories' => array('Apples', 'Bananas', 'Oranges')


  ),


  'yAxis' => array(


     'title' => array('text' => 'Fruit eaten')


  ),


  'series' => array(


     array('name' => 'Jane', 'data' => array(1, 0, 4)),


     array('name' => 'John', 'data' => array(5, 7, 3))


  )

)

)); ,As per the installation instructions give on the extension site,But when i try to run the web application I am getting the below error

[color="#FF0000"]Alias "ext.highcharts.HighchartsWidget" is invalid. Make sure it points to an existing PHP file and the file is readable.[/color]

I have googled it ,but didn’t find anything regarding the error,Can any one please let me know what went wrong and where else I need to put the entry of this extension.I have just starting learning yii.Any help would be plus

Thanks

[color="#006400"]/* moved to the Extensions forum … */[/color]

Hi,

I just solved the issue.For those you are having the same problem the fix for this is:

  1. Unzip the downloaded ext file into protected/extentions and rename it by removing the version number.

  2. add an entry in config/main.php in import section like this:

    ‘import’=>array(

     'application.models.*',
    
    
     'application.components.*',
    
    
     	'zii.widgets.jui.CJuiAccordion',
    
    
     	[color="#00FF00"]'ext.yii-highcharts.*',[/color]
    

    ),

3.Now in your view use the extension name like this

‘ext.yii-highcharts.highcharts.HighchartsWidget’

That’s it ::)

Thanks