Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/253.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Yii扩展器小部件_Php_Jquery_Yii - Fatal编程技术网

Php Yii扩展器小部件

Php Yii扩展器小部件,php,jquery,yii,Php,Jquery,Yii,我正在尝试为Yii框架使用jQueryExpander扩展,但无法使其正常工作 这是指向扩展的链接: 错误: Error 500: <h1>CException</h1> <p>Alias "ext.expander.Expander" is invalid. Make sure it points to an existing PHP file and the file is readable. (/Applications/XAMPP/xamppfiles

我正在尝试为Yii框架使用jQueryExpander扩展,但无法使其正常工作

这是指向扩展的链接:

错误:

Error 500: <h1>CException</h1>
<p>Alias "ext.expander.Expander" is invalid. Make sure it points to an existing PHP file and the file is readable. (/Applications/XAMPP/xamppfiles/htdocs/yii/framework/YiiBase.php:322)</p>
然而,这是可行的:

$this->widget('ext.google.XGoogleChart',array(
    'type'=>'pie',
    'title'=>'Browser market 2008',
    'data'=>array('IE7'=>22,'IE6'=>30.7,'IE5'=>1.7,'Firefox'=>36.5,'Mozilla'=>1.1,'Safari'=>2,'Opera'=>1.4),
    'size'=>array(400,300), // width and height of the chart image
    'color'=>array('6f8a09', '3285ce','dddddd'), // if there are fewer color than slices, then colors are interpolated.
));

当我想在我的项目中使用ckeditor小部件时,我会遵循这种方式。您可以尝试这种方式,也许会收到您的问题。 1从此处下载ckeditor 2在yii的主文件夹中创建ckeditor的文件夹,并将ckeditor的所有内容放在其中。 3从此处下载扩展 并将其解压缩到extensions文件夹中 您将在extensions\ckeditor中拥有内容\ 4.
您可以为expander小部件尝试这种方式

我有这种方式,我的扩展名是:mywebapp/protected/extensions/expander/expander.php
$this->widget('ext.expander.Expander',array(
                        'content'=>$data->incidencia_descripcion,
                        'config'=>array('slicePoint'=>10, 'expandText'=>'Leer más', 'userCollapseText'=>'Ocultar', 'preserveWords'=>false)
                    ));
                ?>
$this->widget('ext.google.XGoogleChart',array(
    'type'=>'pie',
    'title'=>'Browser market 2008',
    'data'=>array('IE7'=>22,'IE6'=>30.7,'IE5'=>1.7,'Firefox'=>36.5,'Mozilla'=>1.1,'Safari'=>2,'Opera'=>1.4),
    'size'=>array(400,300), // width and height of the chart image
    'color'=>array('6f8a09', '3285ce','dddddd'), // if there are fewer color than slices, then colors are interpolated.
));